Spaces:
Sleeping
Sleeping
Commit
·
7eb4e1d
1
Parent(s):
f66c338
add interface for alexnet
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
return
|
5 |
|
6 |
-
iface = gr.Interface(fn=
|
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()
|