fffiloni commited on
Commit
afa3edd
·
verified ·
1 Parent(s): 44ec107

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -81,7 +81,7 @@ def run_inference(temp_dir):
81
  )
82
 
83
  # Collect the output images
84
- output_images = glob(os.path.join("mv_results", "*.mp4"))
85
  return output_images
86
  except subprocess.CalledProcessError as e:
87
  return f"Error during inference: {str(e)}"
@@ -104,7 +104,7 @@ def process_image(input_url):
104
 
105
 
106
  shutil.rmtree(temp_dir) # Cleanup temporary folder
107
- return output_video
108
 
109
  def gradio_interface():
110
  with gr.Blocks() as app:
 
81
  )
82
 
83
  # Collect the output images
84
+ output_images = glob(os.path.join("out/input_image", "*.mp4"))
85
  return output_images
86
  except subprocess.CalledProcessError as e:
87
  return f"Error during inference: {str(e)}"
 
104
 
105
 
106
  shutil.rmtree(temp_dir) # Cleanup temporary folder
107
+ return output_video[0]
108
 
109
  def gradio_interface():
110
  with gr.Blocks() as app: