AmirV97 commited on
Commit
006ac48
·
1 Parent(s): cb2dd0b

image display in UI

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -51,7 +51,10 @@ iface = gr.Interface(
51
  inputs=[
52
  gr.File(label="Upload Input Image"),
53
  ],
54
- outputs=gr.Textbox(label="Classification Result"),
 
 
 
55
  title="Proximal Humerus Fracture Detection",
56
  description="Upload an image, and get the classification result.",
57
  examples=examples # Add example inputs
 
51
  inputs=[
52
  gr.File(label="Upload Input Image"),
53
  ],
54
+ outputs=[
55
+ gr.Image(label="Selected Image"), # Display the uploaded or example image
56
+ gr.Textbox(label="Classification Result"), # Display the classification result
57
+ ],
58
  title="Proximal Humerus Fracture Detection",
59
  description="Upload an image, and get the classification result.",
60
  examples=examples # Add example inputs