Spaces:
Runtime error
Runtime error
criticalDanger
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -14,11 +14,8 @@ def predict(image):
|
|
14 |
return output
|
15 |
|
16 |
# Create Gradio interface
|
17 |
-
|
18 |
-
image_input = gr.Image(type="filepath", label="Upload Image File", visible=False)
|
19 |
-
output = gr.Label()
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
iface.launch()
|
|
|
14 |
return output
|
15 |
|
16 |
# Create Gradio interface
|
17 |
+
inputs = gr.Image(type="filepath", label="Upload Image File", visible=False)
|
|
|
|
|
18 |
|
19 |
+
outputs = gr.Label(output)
|
20 |
+
|
21 |
+
gr.Interface(fn=predict, inputs=image_input, outputs=output).launch()
|
|