Spaces:
Runtime error
Runtime error
Delete app.py
Browse files
app.py
DELETED
|
@@ -1,15 +0,0 @@
|
|
| 1 |
-
from fastai.vision.all import *
|
| 2 |
-
import gradio as gr
|
| 3 |
-
|
| 4 |
-
label = ['Cancer', 'No Cancer']
|
| 5 |
-
|
| 6 |
-
def classificador(im):
|
| 7 |
-
pred,idx,probs = learn.predict(im)
|
| 8 |
-
return dict(zip(label, map(float, probs)))
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
imatge = gr.inputs.Image(shape=(192,192))
|
| 12 |
-
label = gr.outputs.Label()
|
| 13 |
-
|
| 14 |
-
intf = gr.Interface(fn=classificador, inputs = imatge, outputs = label)
|
| 15 |
-
intf.launch(inline=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|