Spaces:
Sleeping
Sleeping
should work now
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ def sign(input_img):
|
|
8 |
input_img = Image.fromarray(input_img)
|
9 |
prediction = sign_api.predict(input_img)
|
10 |
print('prediction',prediction)
|
11 |
-
return prediction
|
12 |
|
13 |
demo = gr.Interface(sign,inputs=gr.Image(shape=(200, 200)), outputs=gr.Label())
|
14 |
demo.launch()
|
|
|
8 |
input_img = Image.fromarray(input_img)
|
9 |
prediction = sign_api.predict(input_img)
|
10 |
print('prediction',prediction)
|
11 |
+
return prediction['class']
|
12 |
|
13 |
demo = gr.Interface(sign,inputs=gr.Image(shape=(200, 200)), outputs=gr.Label())
|
14 |
demo.launch()
|