fffiloni commited on
Commit
597d161
1 Parent(s): f4cffb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -27,7 +27,10 @@ def infer(video_frames, masks_frames):
27
 
28
  execute_command(command)
29
 
30
- return "done"
 
 
 
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.Textbox(label="Result")
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