drewThomasson
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -13,9 +13,9 @@ def process_ebook(ebook_file):
|
|
13 |
ebook_file_path = os.path.join(input_dir, ebook_file.name)
|
14 |
shutil.move(ebook_file.name, ebook_file_path)
|
15 |
|
16 |
-
# Call
|
17 |
try:
|
18 |
-
result = subprocess.run(["python3", "
|
19 |
if result.returncode == 0:
|
20 |
# Success message when the audiobook is ready
|
21 |
return "Audiobook is ready! You can now download your files below."
|
|
|
13 |
ebook_file_path = os.path.join(input_dir, ebook_file.name)
|
14 |
shutil.move(ebook_file.name, ebook_file_path)
|
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 |
if result.returncode == 0:
|
20 |
# Success message when the audiobook is ready
|
21 |
return "Audiobook is ready! You can now download your files below."
|