PanagiotaMoraiti commited on
Commit
05b2be5
·
verified ·
1 Parent(s): da111ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -18,11 +18,14 @@ enable_queue=True
18
 
19
  gr.Interface(
20
  fn=predict,
21
- inputs=gr.inputs.Image(shape=(512, 512), sources=["upload", "webcam", "clipboard"]),
22
- outputs=gr.outputs.Label(num_top_classes=4),
23
  title=title,
24
  description=description,
25
  examples=examples,
26
  interpretation=interpretation,
27
  enable_queue=enable_queue
28
- ).launch()
 
 
 
 
18
 
19
  gr.Interface(
20
  fn=predict,
21
+ inputs=gr.Image(label="Input Image Component", shape=(512, 512), sources=["upload", "webcam", "clipboard"]),
22
+ outputs=gr.Image(label="Output Image Component", num_top_classes=4),
23
  title=title,
24
  description=description,
25
  examples=examples,
26
  interpretation=interpretation,
27
  enable_queue=enable_queue
28
+ ).launch()
29
+
30
+ inputs=gr.Image(label="Input Image Component", width=300),
31
+ outputs=gr.Image(label="Output Image Component")