drewThomasson
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -15,13 +15,15 @@ def process_ebook(ebook_file):
|
|
15 |
|
16 |
# Call the Auto_VoxNovel.py script and wait for it to finish
|
17 |
try:
|
18 |
-
result = subprocess.run(["python3", "Auto_VoxNovel.py"], capture_output=True, text=True)
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
25 |
except Exception as e:
|
26 |
return f"Failed to run audiobook script: {str(e)}"
|
27 |
|
|
|
15 |
|
16 |
# Call the Auto_VoxNovel.py script and wait for it to finish
|
17 |
try:
|
18 |
+
#result = subprocess.run(["python3", "Auto_VoxNovel.py"], capture_output=True, text=True)
|
19 |
+
import Auto_VoxNovel
|
20 |
+
#if result.returncode == 0:
|
21 |
+
# # Success message when the audiobook is ready
|
22 |
+
# return "Audiobook is ready! You can now download your files below."
|
23 |
+
#else:
|
24 |
+
# # Error message if something went wrong
|
25 |
+
# return f"Error: {result.stderr}"
|
26 |
+
return "Audiobook is ready! You can now download your files below."
|
27 |
except Exception as e:
|
28 |
return f"Failed to run audiobook script: {str(e)}"
|
29 |
|