fffiloni commited on
Commit
2a59082
1 Parent(s): 2eb2041

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -171,7 +171,7 @@ def infer(frameA, frameB):
171
 
172
  flo_file = write_flo(predicted_flow, "flofile.flo")
173
 
174
- return "done", "predicted_flow.jpg", ["flofile.flo"]
175
 
176
 
177
- gr.Interface(fn=infer, inputs=[gr.Image(source="upload", type="filepath", label="frame 1"), gr.Image(source="upload", type="filepath", label="frame 2")], outputs=[gr.Textbox(), gr.Image(label="flow"), gr.Files()]).launch()
 
171
 
172
  flo_file = write_flo(predicted_flow, "flofile.flo")
173
 
174
+ return "predicted_flow.jpg", ["flofile.flo"]
175
 
176
 
177
+ gr.Interface(fn=infer, inputs=[gr.Image(source="upload", type="filepath", label="frame 1"), gr.Image(source="upload", type="filepath", label="frame 2")], outputs=[gr.Image(label="flow image"), gr.Files(label="flow file")]).launch()