Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ def preprocess_mri(nifti_path):
|
|
85 |
|
86 |
# Run Brain Age Prediction (Decorated for GPU Execution)
|
87 |
@spaces.GPU(duration=90)
|
88 |
-
def predict_brain_age(nifti_file, actual_age):
|
89 |
if not os.path.exists(nifti_file.name):
|
90 |
return "Error: MRI file not found"
|
91 |
|
|
|
85 |
|
86 |
# Run Brain Age Prediction (Decorated for GPU Execution)
|
87 |
@spaces.GPU(duration=90)
|
88 |
+
def predict_brain_age(nifti_file, actual_age, sex):
|
89 |
if not os.path.exists(nifti_file.name):
|
90 |
return "Error: MRI file not found"
|
91 |
|