fffiloni commited on
Commit
56704ce
1 Parent(s): 8727e48

Update app.py

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