princeml commited on
Commit
a9089bf
·
1 Parent(s): d584081

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -21,7 +21,9 @@ def gradio_wrapper(img):
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),
 
21
  #print(np.shape(img))
22
  results = model.predict(img) # predict on an image
23
 
24
+ return cv2.putText(img, str(results[0]),(00, 185), cv2.FONT_HERSHEY_SIMPLEX, 1,
25
+ (0, 0, 255), 2, cv2.LINE_AA, False)
26
+
27
  demo = gr.Interface(
28
  gradio_wrapper,
29
  #gr.Image(source="webcam", streaming=True, flip=True),