Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ image_processor = AutoImageProcessor.from_pretrained("Aruno/gemini-beauty")
|
|
7 |
model = MobileNetV2Model.from_pretrained("Aruno/gemini-beauty")
|
8 |
|
9 |
def inference(img):
|
10 |
-
inputs = image_processor(
|
11 |
with torch.no_grad():
|
12 |
outputs = model(**inputs)
|
13 |
return outputs
|
@@ -16,8 +16,8 @@ iface = gradio.Interface(
|
|
16 |
fn=inference,
|
17 |
inputs='image',
|
18 |
outputs='image',
|
19 |
-
title='
|
20 |
-
description='
|
21 |
-
examples=[])
|
22 |
|
23 |
iface.launch()
|
|
|
7 |
model = MobileNetV2Model.from_pretrained("Aruno/gemini-beauty")
|
8 |
|
9 |
def inference(img):
|
10 |
+
inputs = image_processor(img, return_tensors="pt")
|
11 |
with torch.no_grad():
|
12 |
outputs = model(**inputs)
|
13 |
return outputs
|
|
|
16 |
fn=inference,
|
17 |
inputs='image',
|
18 |
outputs='image',
|
19 |
+
title='Your Attractivness',
|
20 |
+
description='Check your attractivness',
|
21 |
+
examples=["face_01.jpg", "face_02.jpg"])
|
22 |
|
23 |
iface.launch()
|