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 "predicted_flow.jpg",
|
| 175 |
|
| 176 |
title="RAFT Optical Flow"
|
| 177 |
description="<p style='text-align:center'>PyTorch way to Generate optical flow image & .flo file from 2 consecutive frames with RAFT model</p>"
|
|
@@ -187,7 +187,7 @@ with gr.Blocks() as block:
|
|
| 187 |
submit_btn = gr.Button("Submit")
|
| 188 |
|
| 189 |
flow_img_out = gr.Image(label="flow image")
|
| 190 |
-
flow_file_out = gr.
|
| 191 |
|
| 192 |
|
| 193 |
examples=[['basket1.jpg','basket2.jpg']]
|
|
|
|
| 171 |
|
| 172 |
flo_file = write_flo(predicted_flow, "flofile.flo")
|
| 173 |
|
| 174 |
+
return "predicted_flow.jpg", "flofile.flo"
|
| 175 |
|
| 176 |
title="RAFT Optical Flow"
|
| 177 |
description="<p style='text-align:center'>PyTorch way to Generate optical flow image & .flo file from 2 consecutive frames with RAFT model</p>"
|
|
|
|
| 187 |
submit_btn = gr.Button("Submit")
|
| 188 |
|
| 189 |
flow_img_out = gr.Image(label="flow image")
|
| 190 |
+
flow_file_out = gr.File(label="flow file")
|
| 191 |
|
| 192 |
|
| 193 |
examples=[['basket1.jpg','basket2.jpg']]
|