Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ def predict(image):
|
|
18 |
# Get the predicted class
|
19 |
predicted_class = logits.argmax(-1).item()
|
20 |
# You may need to adjust the following line based on your class labels
|
21 |
-
class_names = ["
|
22 |
-
return predicted_class
|
23 |
|
24 |
# Set up the Gradio interface
|
25 |
image_cp = gr.Image(type="pil", label='Brain')
|
|
|
18 |
# Get the predicted class
|
19 |
predicted_class = logits.argmax(-1).item()
|
20 |
# You may need to adjust the following line based on your class labels
|
21 |
+
class_names = ["glioma", "meningioma", "notumor", "pituitary"]
|
22 |
+
return class_names[predicted_class]
|
23 |
|
24 |
# Set up the Gradio interface
|
25 |
image_cp = gr.Image(type="pil", label='Brain')
|