Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,11 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
5 |
|
6 |
iface = gr.Interface(fn=classify, inputs="image", outputs="label")
|
7 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
from seefood_classifier_import import get_seefood_classifier
|
3 |
|
4 |
+
classifier = get_seefood_classifier()
|
5 |
+
|
6 |
+
def classify(image):
|
7 |
+
print(image)
|
8 |
+
return {str(image): 0.9, 'label2': 0.2}
|
9 |
|
10 |
iface = gr.Interface(fn=classify, inputs="image", outputs="label")
|
11 |
iface.launch()
|