Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from huggingface_hub import hf_hub_download
|
| 3 |
from fastai.learner import load_learner
|
|
|
|
| 4 |
|
| 5 |
#learn = from_pretrained_fastai("edureyyy/MamographyClassifier/ModelSuperKek.pkl")
|
| 6 |
learn = load_learner('edureyyy/MamographyClassifier/ModelSuperKek.pkl')
|
|
|
|
| 1 |
+
!pip install fastai
|
| 2 |
+
!pip install transformers
|
| 3 |
+
|
| 4 |
import gradio as gr
|
|
|
|
| 5 |
from fastai.learner import load_learner
|
| 6 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 7 |
|
| 8 |
#learn = from_pretrained_fastai("edureyyy/MamographyClassifier/ModelSuperKek.pkl")
|
| 9 |
learn = load_learner('edureyyy/MamographyClassifier/ModelSuperKek.pkl')
|