Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,14 +26,13 @@ def predict_brain_tumor(img):
|
|
| 26 |
return output_str
|
| 27 |
|
| 28 |
# Example images (replace these paths with your actual example image paths)
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
]
|
| 35 |
|
| 36 |
-
|
| 37 |
# Create Gradio Interface
|
| 38 |
iface = gr.Interface(
|
| 39 |
fn=predict_brain_tumor,
|
|
@@ -45,4 +44,4 @@ iface = gr.Interface(
|
|
| 45 |
)
|
| 46 |
|
| 47 |
# Launch Gradio App
|
| 48 |
-
iface.launch(
|
|
|
|
| 26 |
return output_str
|
| 27 |
|
| 28 |
# Example images (replace these paths with your actual example image paths)
|
| 29 |
+
example_images = [
|
| 30 |
+
["example_glioma.jpg"],
|
| 31 |
+
["example_meningioma.jpeg"],
|
| 32 |
+
["example_notumor.jpeg"],
|
| 33 |
+
["example_pit.jpg"]
|
| 34 |
]
|
| 35 |
|
|
|
|
| 36 |
# Create Gradio Interface
|
| 37 |
iface = gr.Interface(
|
| 38 |
fn=predict_brain_tumor,
|
|
|
|
| 44 |
)
|
| 45 |
|
| 46 |
# Launch Gradio App
|
| 47 |
+
iface.launch()
|