Adhir commited on
Commit
9d12323
1 Parent(s): 77f1d93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
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
- 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(sources=["webcam"], streaming=True),
22
  outputs = gr.Label(num_top_classes=5),
23
  title="Show your face ?",
24
  ).launch(share="True")
25
 
26
- #inputs = gr.Image(label="Upload Any room photo", type = "filepath"),
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
+