Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import from_pretrained_fastai
|
|
|
|
| 3 |
|
| 4 |
examples = ["image_1.png", "image_2.png"]
|
| 5 |
repo_id = "hugginglearners/grapevine_leaves_classification"
|
|
|
|
| 6 |
|
| 7 |
def get_y(r):
|
| 8 |
return r["label"]
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from huggingface_hub import from_pretrained_fastai
|
| 3 |
+
from pathlib import Path
|
| 4 |
|
| 5 |
examples = ["image_1.png", "image_2.png"]
|
| 6 |
repo_id = "hugginglearners/grapevine_leaves_classification"
|
| 7 |
+
path = Path("./")
|
| 8 |
|
| 9 |
def get_y(r):
|
| 10 |
return r["label"]
|