nickmuchi commited on
Commit
a8aa8cb
1 Parent(s): fd159d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -98,7 +98,7 @@ with demo:
98
  with gr.Row():
99
  with gr.Column():
100
  img_input = gr.Image(type='pil',shape=(750,750))
101
- label_from_upload= gr.Label()
102
 
103
  with gr.Row():
104
  example_images = gr.Examples(examples=images,inputs=[img_input])
@@ -113,7 +113,7 @@ with demo:
113
  original_image = gr.Image(shape=(750,750))
114
  url_input.change(get_original_image, url_input, original_image)
115
  with gr.Column():
116
- label_from_url = gr.Label()
117
 
118
  with gr.Row():
119
  example_url = gr.Examples(examples=urls,inputs=[url_input])
@@ -126,7 +126,7 @@ with demo:
126
  with gr.Column():
127
  web_input = gr.Image(source='webcam',type='pil',shape=(750,750),streaming=True)
128
  with gr.Column():
129
- label_from_webcam= gr.Label()
130
 
131
  cam_but = gr.Button('Classify')
132
 
 
98
  with gr.Row():
99
  with gr.Column():
100
  img_input = gr.Image(type='pil',shape=(750,750))
101
+ label_from_upload= gr.Label(num_top_classes=3)
102
 
103
  with gr.Row():
104
  example_images = gr.Examples(examples=images,inputs=[img_input])
 
113
  original_image = gr.Image(shape=(750,750))
114
  url_input.change(get_original_image, url_input, original_image)
115
  with gr.Column():
116
+ label_from_url = gr.Label(num_top_classes=3)
117
 
118
  with gr.Row():
119
  example_url = gr.Examples(examples=urls,inputs=[url_input])
 
126
  with gr.Column():
127
  web_input = gr.Image(source='webcam',type='pil',shape=(750,750),streaming=True)
128
  with gr.Column():
129
+ label_from_webcam= gr.Label(num_top_classes=3)
130
 
131
  cam_but = gr.Button('Classify')
132