AbdullahAj2000 commited on
Commit
878513f
·
verified ·
1 Parent(s): 1a61c25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -45,7 +45,10 @@ def show_preds_image(image_path,model_selection):
45
  font_scale = 2
46
  cv2.putText(img, mux_value, (text_x, text_y), cv2.FONT_HERSHEY_SIMPLEX, font_scale, (255, 0, 0), 2, cv2.LINE_AA)
47
 
48
- return img,f'<a href="https://www.gradio.app/docs/examples" target="_blank">"https://www.gradio.app/docs/examples"</a>',f'<a href="https://www.gradio.app/docs/examples" target="_blank">"https://www.gradio.app/docs/examples"</a>'
 
 
 
49
 
50
 
51
  inputs_image = gr.Image(type="filepath", label="Input Image")
 
45
  font_scale = 2
46
  cv2.putText(img, mux_value, (text_x, text_y), cv2.FONT_HERSHEY_SIMPLEX, font_scale, (255, 0, 0), 2, cv2.LINE_AA)
47
 
48
+ conf = (classify_image(image_path,model_selection))
49
+ html = f'<p>petra</p><a href="https://www.gradio.app/docs/examples" target="_blank">"https://www.gradio.app/docs/examples"</a>'
50
+
51
+ return img,conf,
52
 
53
 
54
  inputs_image = gr.Image(type="filepath", label="Input Image")