Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,12 @@ import gradio as gr
|
|
2 |
|
3 |
def image_classifier(input):
|
4 |
return {'normal': 0.3, 'bullying': 0.7}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
demo = gr.Interface(fn=image_classifier, inputs="image", outputs="label")
|
7 |
-
demo.launch()
|
|
|
2 |
|
3 |
def image_classifier(input):
|
4 |
return {'normal': 0.3, 'bullying': 0.7}
|
5 |
+
|
6 |
+
).launch(enable_queue=True)
|
7 |
+
demo = gr.Interface.load(
|
8 |
+
"models/datasciencemmw/pickonai-best",
|
9 |
+
inputs="image",
|
10 |
+
output="label",
|
11 |
+
title="PickOnAI Demo")
|
12 |
+
demo.launch()
|
13 |
|
|
|
|