Update app.py
Browse files
app.py
CHANGED
@@ -141,7 +141,7 @@ def infer():
|
|
141 |
flow_img = flow_to_image(predicted_flow).to("cpu")
|
142 |
# output_folder = "/tmp/" # Update this to the folder of your choice
|
143 |
write_jpeg(flow_img, f"predicted_flow.jpg")
|
144 |
-
flo_file = write_flo("flofile.flo", predicted_flow)
|
145 |
return "done", "predicted_flow.jpg", flo_file
|
146 |
####################################
|
147 |
# Bonus: Creating GIFs of predicted flows
|
|
|
141 |
flow_img = flow_to_image(predicted_flow).to("cpu")
|
142 |
# output_folder = "/tmp/" # Update this to the folder of your choice
|
143 |
write_jpeg(flow_img, f"predicted_flow.jpg")
|
144 |
+
flo_file = write_flo("flofile.flo", predicted_flow).to("cpu")
|
145 |
return "done", "predicted_flow.jpg", flo_file
|
146 |
####################################
|
147 |
# Bonus: Creating GIFs of predicted flows
|