Spaces:
Runtime error
Runtime error
Ohnesorge
commited on
Commit
·
8861ba7
1
Parent(s):
f0c90e4
Update app.py
Browse files
app.py
CHANGED
@@ -34,5 +34,7 @@ def predict(img):
|
|
34 |
# run the inference
|
35 |
prediction = model.predict(data)
|
36 |
return prediction
|
37 |
-
|
|
|
|
|
38 |
iface.launch()
|
|
|
34 |
# run the inference
|
35 |
prediction = model.predict(data)
|
36 |
return prediction
|
37 |
+
|
38 |
+
|
39 |
+
iface = gr.Interface(fn=predict, inputs=gr.inputs.Image(type="pil"), outputs=gr.outputs.Label())
|
40 |
iface.launch()
|