fffiloni commited on
Commit
69620e1
1 Parent(s): 8f08c01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -149,7 +149,7 @@ def infer():
149
  # output_folder = "/tmp/" # Update this to the folder of your choice
150
  write_jpeg(flow_img, f"predicted_flow.jpg")
151
  flo_file = write_flo(predicted_flow, "flofile.flo")
152
- return "done", "predicted_flow.jpg", flo_file
153
  ####################################
154
  # Bonus: Creating GIFs of predicted flows
155
  # ---------------------------------------
@@ -178,4 +178,4 @@ def infer():
178
  # ffmpeg -f image2 -framerate 30 -i predicted_flow_%d.jpg -loop -1 flow.gif
179
 
180
 
181
- gr.Interface(fn=infer, inputs=[], outputs=[gr.Textbox(), gr.Image(), gr.File()]).launch()
 
149
  # output_folder = "/tmp/" # Update this to the folder of your choice
150
  write_jpeg(flow_img, f"predicted_flow.jpg")
151
  flo_file = write_flo(predicted_flow, "flofile.flo")
152
+ return "done", "predicted_flow.jpg", ["flofile.flo"]
153
  ####################################
154
  # Bonus: Creating GIFs of predicted flows
155
  # ---------------------------------------
 
178
  # ffmpeg -f image2 -framerate 30 -i predicted_flow_%d.jpg -loop -1 flow.gif
179
 
180
 
181
+ gr.Interface(fn=infer, inputs=[], outputs=[gr.Textbox(), gr.Image(), gr.Files()]).launch()