AbdullahAj2000 commited on
Commit
1a61c25
·
verified ·
1 Parent(s): 02917a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -45,7 +45,7 @@ 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>'
49
 
50
 
51
  inputs_image = gr.Image(type="filepath", label="Input Image")
@@ -53,11 +53,12 @@ model_selection = gr.Dropdown(["VGG19","ResNet50","Efficientnet"])
53
 
54
  outputs_image = gr.Image(type="numpy", label="Output Image")
55
  output_text = gr.Textbox()
 
56
 
57
  interface_image = gr.Interface(
58
  fn=show_preds_image,
59
  inputs=[inputs_image,model_selection],
60
- outputs=[outputs_image,output_text],
61
  title="image classification",
62
  )
63
 
 
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")
 
53
 
54
  outputs_image = gr.Image(type="numpy", label="Output Image")
55
  output_text = gr.Textbox()
56
+ link = gr.HTML()
57
 
58
  interface_image = gr.Interface(
59
  fn=show_preds_image,
60
  inputs=[inputs_image,model_selection],
61
+ outputs=[outputs_image,output_text,link],
62
  title="image classification",
63
  )
64