Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def predict(img):
|
|
71 |
|
72 |
preds = model.predict(img)
|
73 |
pred_texts = decode_batch_predictions(preds)
|
74 |
-
return
|
75 |
|
76 |
iface = gr.Interface(fn=predict, inputs="image", outputs="text")
|
77 |
-
iface.launch(
|
|
|
71 |
|
72 |
preds = model.predict(img)
|
73 |
pred_texts = decode_batch_predictions(preds)
|
74 |
+
return pred_texts[0]
|
75 |
|
76 |
iface = gr.Interface(fn=predict, inputs="image", outputs="text")
|
77 |
+
iface.launch()
|