fffiloni commited on
Commit
a570d5d
·
1 Parent(s): 8084825

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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