RanM commited on
Commit
077cde0
·
verified ·
1 Parent(s): 6449f8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- return images
 
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,