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