keyboardsage commited on
Commit
5491a6d
·
verified ·
1 Parent(s): 59a7424

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -20,4 +20,5 @@ interpretation='default'
20
  enable_queue=True
21
 
22
  # fix by removing "outputs." and "inputs."
23
- gr.Interface(fn=predict,inputs=gr.Image(shape=(512, 512)),outputs=gr.Label(num_top_classes=3),title=title,description=description,article=article,examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()
 
 
20
  enable_queue=True
21
 
22
  # fix by removing "outputs." and "inputs."
23
+ # fix by shape=(512, 512) changed to height=512, width=512
24
+ gr.Interface(fn=predict,inputs=gr.Image(height=512, width=512),outputs=gr.Label(num_top_classes=3),title=title,description=description,article=article,examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()