Update app.py
Browse files
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("
|
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:
|