SUBHROJM commited on
Commit
0e85263
1 Parent(s): b1333a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -32,14 +32,12 @@ def image_classifier(img):
32
  text_and_coordinates = [(entry[1], entry[0]) for entry in result]
33
  return text_and_coordinates
34
 
35
- iface = gr.Interface(
36
- fn=predict_sentiment,
37
- inputs="text",
38
- outputs="text",
39
- live=True,
40
- title="Sentiment Analysis",
41
- description="Enter a sentence to predict sentiment.",
42
- )
43
 
44
  # Launch the Gradio Interface
45
- iface.launch()
 
32
  text_and_coordinates = [(entry[1], entry[0]) for entry in result]
33
  return text_and_coordinates
34
 
35
+ demo = gr.Interface(
36
+ fn=image_classifier,
37
+ inputs=gr.Image(type="numpy"),
38
+ outputs=gr.Textbox())
39
+
40
+ demo.launch(debug = True ,share = True)
 
 
41
 
42
  # Launch the Gradio Interface
43
+ demo.launch()