Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,14 @@ def process_ebook(ebook_file):
|
|
10 |
|
11 |
# Save the uploaded file to the input_files folder
|
12 |
ebook_file_path = os.path.join(input_dir, ebook_file.name)
|
13 |
-
shutil.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
# Call the Auto_VoxNovel.py script and stream its output live
|
16 |
try:
|
|
|
10 |
|
11 |
# Save the uploaded file to the input_files folder
|
12 |
ebook_file_path = os.path.join(input_dir, ebook_file.name)
|
13 |
+
shutil.copy(ebook_file.name, ebook_file_path)
|
14 |
+
|
15 |
+
# List the contents of the input_files folder
|
16 |
+
input_files_list = os.listdir(input_dir)
|
17 |
+
input_files_str = "\n".join(input_files_list)
|
18 |
+
|
19 |
+
# Print the list of input files in the terminal
|
20 |
+
print("Files in input_files folder:", input_files_str)
|
21 |
|
22 |
# Call the Auto_VoxNovel.py script and stream its output live
|
23 |
try:
|