drewThomasson commited on
Commit
715bfbb
·
verified ·
1 Parent(s): 5e48504

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
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
- if result.returncode == 0:
20
- # Success message when the audiobook is ready
21
- return "Audiobook is ready! You can now download your files below."
22
- else:
23
- # Error message if something went wrong
24
- return f"Error: {result.stderr}"
 
 
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