edesaras commited on
Commit
7146057
1 Parent(s): a7aa871

Fixed 'example images not showing'

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,8 +25,8 @@ iface = gr.Interface(
25
  inputs=gr.components.Image(shape=(224, 224)),
26
  outputs=gr.components.Label(num_top_classes=3),
27
  description="Tool Classifier",
28
- article=f"<p style='text-align: center'>{', '.join(class_names)}</p>",
29
- examples=[["mosfet.jpg", "screwdriver.jpg", "hammel.png", "led.jpg"]],
30
  live=True,
31
  )
32
 
 
25
  inputs=gr.components.Image(shape=(224, 224)),
26
  outputs=gr.components.Label(num_top_classes=3),
27
  description="Tool Classifier",
28
+ article=f"<h1>Class Names</h1><br><p style='text-align: center'>{', '.join(class_names)}</p>",
29
+ examples=[["mosfet.jpg"], ["screwdriver.jpg"], ["hammel.png"], ["led.jpg"]],
30
  live=True,
31
  )
32