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 |
-
|
9 |
|
10 |
-
pipeline = pipeline("image-classification", model="dima806/facial_emotions_image_detection")
|
11 |
|
12 |
|
13 |
|
@@ -18,10 +18,11 @@ def predict(image):
|
|
18 |
|
19 |
gr.Interface(
|
20 |
predict,
|
21 |
-
inputs = gr.Image(
|
22 |
outputs = gr.Label(num_top_classes=5),
|
23 |
title="Show your face ?",
|
24 |
).launch(share="True")
|
25 |
|
26 |
-
|
27 |
-
|
|
|
|
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 room photo", type = "filepath"),
|
22 |
outputs = gr.Label(num_top_classes=5),
|
23 |
title="Show your face ?",
|
24 |
).launch(share="True")
|
25 |
|
26 |
+
#inputs = gr.Image(sources=["webcam"], streaming=True),
|
27 |
+
#sources=["upload", "webcam", "clipboard"]
|
28 |
+
|