amosfang commited on
Commit
8b2e21c
1 Parent(s): c4eb93a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -158,8 +158,8 @@ sample_images = get_sample_images('example_images')
158
 
159
  tab1 = gr.Interface(
160
  fn=predict_on_train,
161
- inputs=gr.Image(label='', type="pil"),
162
- outputs=[gr.Image(type="pil"), gr.Image(type="pil")],
163
  title='Images with Ground Truth',
164
  examples=sample_images
165
  )
@@ -167,8 +167,8 @@ tab1 = gr.Interface(
167
  # Create the video processing interface
168
  tab2 = gr.Interface(
169
  fn=predict_on_test,
170
- inputs=gr.File(label=""),
171
- outputs=gr.File(label=""),
172
  title='Images with Ground Truth',
173
  examples=sample_images
174
  )
 
158
 
159
  tab1 = gr.Interface(
160
  fn=predict_on_train,
161
+ inputs=gr.Image(),
162
+ outputs=[gr.Image(), gr.Image()],
163
  title='Images with Ground Truth',
164
  examples=sample_images
165
  )
 
167
  # Create the video processing interface
168
  tab2 = gr.Interface(
169
  fn=predict_on_test,
170
+ inputs=gr.Image(),
171
+ outputs=gr.Image(),
172
  title='Images with Ground Truth',
173
  examples=sample_images
174
  )