PanagiotaMoraiti commited on
Commit
70474f0
·
verified ·
1 Parent(s): 8b4c67a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -10
app.py CHANGED
@@ -16,13 +16,10 @@ examples = ['yellow_banana.jpg', 'green_banana.jpg', 'banana_with_brown_spots.jp
16
  interpretation='default'
17
  enable_queue=True
18
 
19
- gr.Interface(
20
- fn=predict,
21
- inputs=gr.inputs.Image(shape=(512, 512)),
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()
 
16
  interpretation='default'
17
  enable_queue=True
18
 
19
+ app = gr.Interface(
20
+ fn=show_image,
21
+ inputs=gr.Image(label="Input Image Component"),
22
+ outputs=gr.Image(label="Output Image Component", value=image) # value= parameter set for output image component
23
+ )
24
+
25
+ app.launch()