amosfang commited on
Commit
420b68f
·
verified ·
1 Parent(s): 5f259ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -122,7 +122,7 @@ gr.Interface(
122
  ).launch(debug=True, share=True)
123
 
124
  tab1 = gr.Interface(
125
- fn=predict,
126
  inputs=gr.Image(label='', type="pil"),
127
  outputs=[gr.Image(type="pil"), gr.Image(type="pil")],
128
  title='Images with Ground Truth',
@@ -132,7 +132,7 @@ tab1 = gr.Interface(
132
 
133
  # Create the video processing interface
134
  tab2 = gr.Interface(
135
- fn=process_video,
136
  inputs=gr.File(label=""),
137
  outputs=gr.File(label=""),
138
  title='Images with Ground Truth',
 
122
  ).launch(debug=True, share=True)
123
 
124
  tab1 = gr.Interface(
125
+ fn=[predict, predict],
126
  inputs=gr.Image(label='', type="pil"),
127
  outputs=[gr.Image(type="pil"), gr.Image(type="pil")],
128
  title='Images with Ground Truth',
 
132
 
133
  # Create the video processing interface
134
  tab2 = gr.Interface(
135
+ fn=predict,
136
  inputs=gr.File(label=""),
137
  outputs=gr.File(label=""),
138
  title='Images with Ground Truth',