Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,9 +5,9 @@ from transformers import pipeline
|
|
| 5 |
|
| 6 |
#pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
|
| 7 |
#pipeline = pipeline(task="image-classification", model="hg2001/autotrain-animals-vs-humans2-37846100283")
|
| 8 |
-
pipeline = pipeline("image-classification", model="lazyturtl/roomclassifier")
|
| 9 |
|
| 10 |
-
|
| 11 |
|
| 12 |
|
| 13 |
|
|
@@ -18,7 +18,7 @@ def predict(image):
|
|
| 18 |
|
| 19 |
gr.Interface(
|
| 20 |
predict,
|
| 21 |
-
inputs = gr.Image(label="Upload Any
|
| 22 |
outputs = gr.Label(num_top_classes=5),
|
| 23 |
title="Show your face ?",
|
| 24 |
).launch(share="True")
|
|
|
|
| 5 |
|
| 6 |
#pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
|
| 7 |
#pipeline = pipeline(task="image-classification", model="hg2001/autotrain-animals-vs-humans2-37846100283")
|
| 8 |
+
#pipeline = pipeline("image-classification", model="lazyturtl/roomclassifier")
|
| 9 |
|
| 10 |
+
pipeline = pipeline("image-classification", model="dima806/facial_emotions_image_detection")
|
| 11 |
|
| 12 |
|
| 13 |
|
|
|
|
| 18 |
|
| 19 |
gr.Interface(
|
| 20 |
predict,
|
| 21 |
+
inputs = gr.Image(label="Upload Any photo", type = "filepath"),
|
| 22 |
outputs = gr.Label(num_top_classes=5),
|
| 23 |
title="Show your face ?",
|
| 24 |
).launch(share="True")
|