idan-haimovich commited on
Commit
58a1b2f
·
1 Parent(s): e7376ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,6 +20,6 @@ def classify_image(img):
20
  image=gr.Image(height = 192, width = 192)
21
  label = gr.Label()
22
  examples = ['Cuts_for_nn.jpeg', 'Fracture_examp.jpeg', 'Rash.jpeg', 'Splinter_examp.jpeg']
23
- intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
24
- outputs.append(resources.get(str(label)))
25
  intf.launch(inline=False)
 
20
  image=gr.Image(height = 192, width = 192)
21
  label = gr.Label()
22
  examples = ['Cuts_for_nn.jpeg', 'Fracture_examp.jpeg', 'Rash.jpeg', 'Splinter_examp.jpeg']
23
+ intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, resources.get(str(label)), examples=examples)
24
+ #(resources.get(str(label))) is how to add the dictionary, add to the output somehow
25
  intf.launch(inline=False)