Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,8 @@ def inference(sentence_mapping, character_dict, selected_style):
|
|
53 |
except Exception as e:
|
54 |
print(f"Error processing paragraph {paragraph_number}: {e}")
|
55 |
|
56 |
-
|
|
|
57 |
|
58 |
gradio_interface = gr.Interface(
|
59 |
fn=inference,
|
|
|
53 |
except Exception as e:
|
54 |
print(f"Error processing paragraph {paragraph_number}: {e}")
|
55 |
|
56 |
+
# Return the images sorted by paragraph number
|
57 |
+
return [images[paragraph_number] for paragraph_number in sorted(images.keys())]
|
58 |
|
59 |
gradio_interface = gr.Interface(
|
60 |
fn=inference,
|