Update app.py
Browse files
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",
|
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.
|
|
|
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()
|