Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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"
|
|
|
|
|
|
|
|
|
| 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()
|