Update app.py
Browse files
app.py
CHANGED
|
@@ -98,7 +98,7 @@ def gradio_app():
|
|
| 98 |
target_input = gr.Textbox(label="Target Object")
|
| 99 |
output_video = gr.Video(label="Output Video")
|
| 100 |
error_output = gr.Textbox(label="Error Messages", visible=False)
|
| 101 |
-
sample_video_frame = gr.Image(value=load_sample_frame("
|
| 102 |
use_sample_button = gr.Button("Use Sample Video")
|
| 103 |
|
| 104 |
video_path = gr.State(None)
|
|
@@ -115,8 +115,8 @@ def gradio_app():
|
|
| 115 |
outputs=[output_video, error_output])
|
| 116 |
|
| 117 |
def use_sample_video():
|
| 118 |
-
sample_video_path = "
|
| 119 |
-
return process_and_update(sample_video_path, "
|
| 120 |
|
| 121 |
use_sample_button.click(use_sample_video,
|
| 122 |
inputs=None,
|
|
|
|
| 98 |
target_input = gr.Textbox(label="Target Object")
|
| 99 |
output_video = gr.Video(label="Output Video")
|
| 100 |
error_output = gr.Textbox(label="Error Messages", visible=False)
|
| 101 |
+
sample_video_frame = gr.Image(value=load_sample_frame("Drone Video of African Wildlife Wild Botswan.webm"), label="Sample Video Frame")
|
| 102 |
use_sample_button = gr.Button("Use Sample Video")
|
| 103 |
|
| 104 |
video_path = gr.State(None)
|
|
|
|
| 115 |
outputs=[output_video, error_output])
|
| 116 |
|
| 117 |
def use_sample_video():
|
| 118 |
+
sample_video_path = "Drone Video of African Wildlife Wild Botswan.webm"
|
| 119 |
+
return process_and_update(sample_video_path, "animal")
|
| 120 |
|
| 121 |
use_sample_button.click(use_sample_video,
|
| 122 |
inputs=None,
|