Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
|
|
2 |
from fastai.vision.all import *
|
3 |
from huggingface_hub import from_pretrained_fastai
|
4 |
|
5 |
-
repo_id = "hugginglearners/brain-tumor-detection-mri"
|
6 |
-
learn = from_pretrained_fastai(
|
7 |
labels = learn.dls.vocab
|
8 |
|
9 |
def predict(img):
|
|
|
2 |
from fastai.vision.all import *
|
3 |
from huggingface_hub import from_pretrained_fastai
|
4 |
|
5 |
+
#repo_id = "hugginglearners/brain-tumor-detection-mri"
|
6 |
+
learn = from_pretrained_fastai("hugginglearners/brain-tumor-detection-mri")
|
7 |
labels = learn.dls.vocab
|
8 |
|
9 |
def predict(img):
|