Christhofer commited on
Commit
7eb4e1d
·
1 Parent(s): f66c338

add interface for alexnet

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  iface.launch()
 
1
  import gradio as gr
2
 
3
+ def predict_alexnet(image):
4
+ return {'benigno': 0.2, 'maligno': 0.1, 'normal': 0.7}
5
 
6
+ iface = gr.Interface(fn=predict_alexnet, inputs="image", outputs="label")
7
  iface.launch()