Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,3 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
pipe = pipeline("image-classification", model="datasciencemmw/pickonai-best")
|
6 |
-
|
7 |
-
def predict(image):
|
8 |
-
return pipe(image)[0]["image_classification"]
|
9 |
-
|
10 |
-
iface = gr.Interface(
|
11 |
-
fn=predict,
|
12 |
-
inputs='image',
|
13 |
-
outputs='label',
|
14 |
-
)
|
15 |
-
|
16 |
-
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
gr.Interface.load("datascience/pickonai-best").launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|