noura2155 commited on
Commit
84dd54d
·
1 Parent(s): 548d068

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -114,10 +114,12 @@ def predict(input_img):
114
  }
115
 
116
  # Create a Gradio interface
117
- gr.Interface(
118
  fn=predict,
119
  inputs=gr.inputs.Image(label="Select an image", type="pil"),
120
  outputs=[
121
  gr.outputs.Image(label="Processed Image"),
122
  gr.outputs.Label(label="Predicted Class"),
123
- gr.outputs.Table(label="Probabilities")],title="ResNet15 Image Classification").launch()
 
 
 
114
  }
115
 
116
  # Create a Gradio interface
117
+ iface = gr.Interface(
118
  fn=predict,
119
  inputs=gr.inputs.Image(label="Select an image", type="pil"),
120
  outputs=[
121
  gr.outputs.Image(label="Processed Image"),
122
  gr.outputs.Label(label="Predicted Class"),
123
+ gr.outputs.Table(label="Probabilities")], title="ResNet15 Image Classification"
124
+ )
125
+ iface.launch()