Update app.py
Browse files
app.py
CHANGED
@@ -171,7 +171,7 @@ def infer(frameA, frameB):
|
|
171 |
|
172 |
flo_file = write_flo(predicted_flow, "flofile.flo")
|
173 |
|
174 |
-
return "
|
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.
|
|
|
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()
|