Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def predict(input_image):
|
|
| 45 |
# Gradio app: file upload instead of image
|
| 46 |
demo = gr.Interface(
|
| 47 |
fn=predict,
|
| 48 |
-
inputs=gr.File(type="
|
| 49 |
outputs="label",
|
| 50 |
title="ClinicaDL MRI Classifier",
|
| 51 |
description="Upload a .nii.gz file to get the model's prediction."
|
|
|
|
| 45 |
# Gradio app: file upload instead of image
|
| 46 |
demo = gr.Interface(
|
| 47 |
fn=predict,
|
| 48 |
+
inputs=gr.File(type="filepath", label=".nii.gz MRI upload"),
|
| 49 |
outputs="label",
|
| 50 |
title="ClinicaDL MRI Classifier",
|
| 51 |
description="Upload a .nii.gz file to get the model's prediction."
|