Spaces:
Running
Running
finished app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
from fastai.vision.all import *
|
3 |
-
#from huggingface_hub import push_to_hub_fastai
|
4 |
-
from huggingface_hub import HfApi
|
5 |
-
api = HfApi()
|
6 |
-
repo_id = "JaxHax/ArduinoClassifier"
|
7 |
-
api.upload_folder(repo_id=repo_id, repo_type="space", folder_path="./")
|
8 |
learn = load_learner('model.pkl')
|
9 |
-
#push_to_hub_fastai(learner=learn, repo_id=repo_id)
|
10 |
catagories = ('Mega', 'Nano', 'Uno')
|
11 |
def classify_image(img):
|
12 |
pred,idx,probs = learn.predict(img)
|
|
|
1 |
import gradio as gr
|
2 |
from fastai.vision.all import *
|
|
|
|
|
|
|
|
|
|
|
3 |
learn = load_learner('model.pkl')
|
|
|
4 |
catagories = ('Mega', 'Nano', 'Uno')
|
5 |
def classify_image(img):
|
6 |
pred,idx,probs = learn.predict(img)
|