Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def gradio_wrapper(img):
|
|
21 |
#print(np.shape(img))
|
22 |
results = model.predict(img) # predict on an image
|
23 |
|
24 |
-
return cv2.
|
25 |
demo = gr.Interface(
|
26 |
gradio_wrapper,
|
27 |
#gr.Image(source="webcam", streaming=True, flip=True),
|
|
|
21 |
#print(np.shape(img))
|
22 |
results = model.predict(img) # predict on an image
|
23 |
|
24 |
+
return cv2.putText(img, str(results[0]), cv2.LINE_AA, False)
|
25 |
demo = gr.Interface(
|
26 |
gradio_wrapper,
|
27 |
#gr.Image(source="webcam", streaming=True, flip=True),
|