Update app.py
Browse files
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 |
-
|
36 |
-
fn=
|
37 |
-
inputs="
|
38 |
-
outputs=
|
39 |
-
|
40 |
-
|
41 |
-
description="Enter a sentence to predict sentiment.",
|
42 |
-
)
|
43 |
|
44 |
# Launch the Gradio Interface
|
45 |
-
|
|
|
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()
|