title and decription
Browse files
app.py
CHANGED
|
@@ -25,8 +25,8 @@ def getImage(prompt):
|
|
| 25 |
return(data["image_url"])
|
| 26 |
|
| 27 |
demo = gr.Interface(
|
| 28 |
-
run,
|
| 29 |
-
[
|
| 30 |
gr.Radio(["Male", "Female"], label="Gender" ), #Gender
|
| 31 |
gr.Slider(100,250,value=160, label="Height (cm)"), #Height
|
| 32 |
gr.Slider(40,250,value=50, label="Weight (kg)"), #Weight
|
|
@@ -41,7 +41,9 @@ demo = gr.Interface(
|
|
| 41 |
# gr.CheckboxGroup(["Nose", "Ear", "Eyebrow", "Lips", "Cheeks"], label="Piercings"),
|
| 42 |
#gr.Checkbox(label="Is it the morning?"),
|
| 43 |
],
|
| 44 |
-
"image",
|
|
|
|
|
|
|
| 45 |
# examples=[
|
| 46 |
# [2, "cat", "park", ["ran", "swam"], True],
|
| 47 |
# [4, "dog", "zoo", ["ate", "swam"], False],
|
|
|
|
| 25 |
return(data["image_url"])
|
| 26 |
|
| 27 |
demo = gr.Interface(
|
| 28 |
+
fn = run,
|
| 29 |
+
inputs = [
|
| 30 |
gr.Radio(["Male", "Female"], label="Gender" ), #Gender
|
| 31 |
gr.Slider(100,250,value=160, label="Height (cm)"), #Height
|
| 32 |
gr.Slider(40,250,value=50, label="Weight (kg)"), #Weight
|
|
|
|
| 41 |
# gr.CheckboxGroup(["Nose", "Ear", "Eyebrow", "Lips", "Cheeks"], label="Piercings"),
|
| 42 |
#gr.Checkbox(label="Is it the morning?"),
|
| 43 |
],
|
| 44 |
+
outputs = "image",
|
| 45 |
+
title = "AI Portrait Generator",
|
| 46 |
+
description = "Generate a portrait of a person with the given attributes",
|
| 47 |
# examples=[
|
| 48 |
# [2, "cat", "park", ["ran", "swam"], True],
|
| 49 |
# [4, "dog", "zoo", ["ate", "swam"], False],
|