Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ from PIL import Image
|
|
| 9 |
import itertools
|
| 10 |
device = 1 if torch.cuda.is_available() else "cpu"
|
| 11 |
|
| 12 |
-
chk_point = "
|
| 13 |
|
| 14 |
model = AutoModelForImageClassification.from_pretrained(chk_point)
|
| 15 |
|
|
@@ -148,4 +148,4 @@ gr.Interface(
|
|
| 148 |
outputs=["image", "label"],
|
| 149 |
examples=[["examples/9_peoples.jpg"], ["examples/sad.jpg"], ["examples/angry.jpg"], ["examples/surprise.jpg"]],
|
| 150 |
title="FER trained on DiffusionFER dataset...",
|
| 151 |
-
).launch(
|
|
|
|
| 9 |
import itertools
|
| 10 |
device = 1 if torch.cuda.is_available() else "cpu"
|
| 11 |
|
| 12 |
+
chk_point = "kdhht2334/autotrain-diffusion-emotion-facial-expression-recognition-40429105176"
|
| 13 |
|
| 14 |
model = AutoModelForImageClassification.from_pretrained(chk_point)
|
| 15 |
|
|
|
|
| 148 |
outputs=["image", "label"],
|
| 149 |
examples=[["examples/9_peoples.jpg"], ["examples/sad.jpg"], ["examples/angry.jpg"], ["examples/surprise.jpg"]],
|
| 150 |
title="FER trained on DiffusionFER dataset...",
|
| 151 |
+
).launch()
|