Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Christhofer
/
cancer-de-mama-privado
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
Christhofer
commited on
Dec 3, 2023
Commit
2f0136f
·
1 Parent(s):
b0df6f9
add application file
Browse files
Files changed (1)
hide
show
app.py
+7
-0
app.py
ADDED
Viewed
@@ -0,0 +1,7 @@
1
+
import gradio as gr
2
+
3
+
def predecir(imagen):
4
+
return {"benigno": 0.2, "maligno": 0.1, "normal":0.7}
5
+
6
+
iface = gr.Interface(fn=predecir, inputs="image", outputs="label")
7
+
iface.launch()