Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,10 @@ def infer(video_frames, masks_frames):
|
|
| 27 |
|
| 28 |
execute_command(command)
|
| 29 |
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
css="""
|
| 33 |
#col-container{
|
|
@@ -54,7 +57,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 54 |
submit_btn = gr.Button("Submit")
|
| 55 |
|
| 56 |
with gr.Column():
|
| 57 |
-
result = gr.
|
| 58 |
|
| 59 |
|
| 60 |
|
|
|
|
| 27 |
|
| 28 |
execute_command(command)
|
| 29 |
|
| 30 |
+
# Get the list of files in the "results" folder
|
| 31 |
+
result_files = os.listdir(output_folder)
|
| 32 |
+
|
| 33 |
+
return result_files
|
| 34 |
|
| 35 |
css="""
|
| 36 |
#col-container{
|
|
|
|
| 57 |
submit_btn = gr.Button("Submit")
|
| 58 |
|
| 59 |
with gr.Column():
|
| 60 |
+
result = gr.Files(label="Result")
|
| 61 |
|
| 62 |
|
| 63 |
|