Spaces:
Build error
Build error
Ethan MacCumber commited on
Commit ·
a7c50d6
1
Parent(s): 85b1c79
trying fastai native model upload integration
Browse files
app.py
CHANGED
|
@@ -3,15 +3,23 @@ from fastai.vision.all import *
|
|
| 3 |
import matplotlib.pyplot as plt
|
| 4 |
import numpy as np
|
| 5 |
from transformers import pipeline
|
|
|
|
| 6 |
|
| 7 |
pipe = pipeline(
|
| 8 |
task="image-classification",
|
| 9 |
-
model ="dr-
|
| 10 |
description="Retinal Condition Classifier",
|
| 11 |
examples=['sick-eye.jpeg', 'healthy.jpg']
|
| 12 |
).launch()
|
| 13 |
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
|
|
|
|
| 3 |
import matplotlib.pyplot as plt
|
| 4 |
import numpy as np
|
| 5 |
from transformers import pipeline
|
| 6 |
+
from huggingface_hub import from_pretrained_fastai
|
| 7 |
|
| 8 |
pipe = pipeline(
|
| 9 |
task="image-classification",
|
| 10 |
+
model ="ethanmac/dr-maclboomber-retina-classifier",
|
| 11 |
description="Retinal Condition Classifier",
|
| 12 |
examples=['sick-eye.jpeg', 'healthy.jpg']
|
| 13 |
).launch()
|
| 14 |
|
| 15 |
|
| 16 |
+
# from huggingface_hub import from_pretrained_fastai
|
| 17 |
+
|
| 18 |
+
# # repo_id = "YOUR_USERNAME/YOUR_LEARNER_NAME"
|
| 19 |
+
# repo_id = "espejelomar/identify-my-cat"
|
| 20 |
+
|
| 21 |
+
# learner = from_pretrained_fastai(repo_id)
|
| 22 |
+
|
| 23 |
|
| 24 |
|
| 25 |
|