Adhir commited on
Commit
2d229c5
1 Parent(s): c1f4ee4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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,7 +18,7 @@ def predict(image):
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")
 
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")