ronig commited on
Commit
a44c2a2
·
1 Parent(s): f8254f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -1,7 +1,11 @@
1
  import gradio as gr
 
2
 
3
- def classify(name):
4
- return {'label1': 0.9, 'label2': 0.2}
 
 
 
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()