Spaces:
Runtime error
Runtime error
Update app3.py
Browse files
app3.py
CHANGED
|
@@ -15,7 +15,7 @@ token = '5UAYO8UWHNQKT3UUS9H8V360L76MD72DRIUY9QC2'
|
|
| 15 |
##############################################################
|
| 16 |
#################################################
|
| 17 |
|
| 18 |
-
def SD_call(prompt, image_prompt,
|
| 19 |
|
| 20 |
positive = "clothes"
|
| 21 |
negative = "naked, nsfw, porn"
|
|
@@ -40,7 +40,7 @@ def SD_call(prompt, image_prompt, weight, age, color, hair_color,hair_length,hai
|
|
| 40 |
else:
|
| 41 |
color = ", ".join(color)
|
| 42 |
skin_details = ", ".join(skin_details)
|
| 43 |
-
total_prompt = f"masterpiece, best quality, 8k, (looking at viewer:1.1), gorgeous, hot, seductive, {age} years old american {color} woman, {weight}
|
| 44 |
|
| 45 |
|
| 46 |
# Define your data (this could also be a JSON payload)
|
|
@@ -123,8 +123,8 @@ def SD_call(prompt, image_prompt, weight, age, color, hair_color,hair_length,hai
|
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
-
def greet(prompt, image_prompt,
|
| 127 |
-
image_path = SD_call(prompt, image_prompt,
|
| 128 |
return "Image generated successfully", image_path
|
| 129 |
|
| 130 |
|
|
@@ -133,14 +133,14 @@ demo = gr.Interface(
|
|
| 133 |
inputs=[
|
| 134 |
gr.Textbox(label="Personal prompt", lines=3),
|
| 135 |
gr.Textbox(label="Girl_prompt", lines=3),
|
| 136 |
-
gr.Slider(label="Weight", value=55, minimum=40, maximum=150),
|
| 137 |
gr.Slider(label="Age", value=22, minimum=18, maximum=75),
|
|
|
|
| 138 |
gr.CheckboxGroup(choices=["asian", "white", "black", "latina", "middle eastern","indigenous", "Mixed"],label="Color",type="value"),
|
| 139 |
gr.Radio(["black", "brown", "brunette", "dark brown", "light brown", "blonde", "dirty blonde", "platinum blonde", "red", "auburn", "ginger", "strawberry blonde", "gray", "silver", "white", "blue", "green", "purple", "pink", "rainbow", "multicolored"],label="Hair Color",type="value"),
|
| 140 |
gr.Radio(["short", "long", "mi-long"],label="Hair length", type="value"),
|
| 141 |
gr.Radio(["straight", "curvy", "wavy"],label="Hair texture", type="value"),
|
| 142 |
gr.CheckboxGroup(choices=["((tattoos))", "((birthmark))", "freckles", "((scars))"],label="Skin details", type="value"),
|
| 143 |
-
gr.Radio(["
|
| 144 |
gr.Checkbox(label="NSFW", info="πππ")
|
| 145 |
],
|
| 146 |
flagging_options=["blurry", "incorrect", "other"],
|
|
|
|
| 15 |
##############################################################
|
| 16 |
#################################################
|
| 17 |
|
| 18 |
+
def SD_call(prompt, image_prompt, age, weight, color, hair_color,hair_length,hair_texture,skin_details,eye_colors,NSFW):
|
| 19 |
|
| 20 |
positive = "clothes"
|
| 21 |
negative = "naked, nsfw, porn"
|
|
|
|
| 40 |
else:
|
| 41 |
color = ", ".join(color)
|
| 42 |
skin_details = ", ".join(skin_details)
|
| 43 |
+
total_prompt = f"masterpiece, best quality, 8k, (looking at viewer:1.1), gorgeous, hot, seductive, {age} years old american {color} woman, {weight} woman, (eye contact:1.1), beautiful face, hyper detailed, best quality, ultra high res, {hair_length} {hair_color} {hair_texture} hair,{eye_colors} eyes, {skin_details} photorealistic, high resolution, detailed, raw photo, 1girl,{image_prompt}, amateur cellphone photography. f8.0, samsung galaxy, noise, jpeg artefacts, poor lighting, low light, underexposed, high contrast "
|
| 44 |
|
| 45 |
|
| 46 |
# Define your data (this could also be a JSON payload)
|
|
|
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
+
def greet(prompt, image_prompt, age, weight, color, hair_color,hair_length,hair_texture,skin_details,eye_colors,NSFW):
|
| 127 |
+
image_path = SD_call(prompt, image_prompt, age, weight, color, hair_color,hair_length,hair_texture,skin_details,eye_colors,NSFW)
|
| 128 |
return "Image generated successfully", image_path
|
| 129 |
|
| 130 |
|
|
|
|
| 133 |
inputs=[
|
| 134 |
gr.Textbox(label="Personal prompt", lines=3),
|
| 135 |
gr.Textbox(label="Girl_prompt", lines=3),
|
|
|
|
| 136 |
gr.Slider(label="Age", value=22, minimum=18, maximum=75),
|
| 137 |
+
gr.Radio(["skinny", "slim", "athletic", "muscular", "average", "curvy", "chubby", "overweight", "obese"],label="Body Type",type="value"),
|
| 138 |
gr.CheckboxGroup(choices=["asian", "white", "black", "latina", "middle eastern","indigenous", "Mixed"],label="Color",type="value"),
|
| 139 |
gr.Radio(["black", "brown", "brunette", "dark brown", "light brown", "blonde", "dirty blonde", "platinum blonde", "red", "auburn", "ginger", "strawberry blonde", "gray", "silver", "white", "blue", "green", "purple", "pink", "rainbow", "multicolored"],label="Hair Color",type="value"),
|
| 140 |
gr.Radio(["short", "long", "mi-long"],label="Hair length", type="value"),
|
| 141 |
gr.Radio(["straight", "curvy", "wavy"],label="Hair texture", type="value"),
|
| 142 |
gr.CheckboxGroup(choices=["((tattoos))", "((birthmark))", "freckles", "((scars))"],label="Skin details", type="value"),
|
| 143 |
+
gr.Radio(["brown", "hazel", "green", "blue", "gray", "amber", "black", "red", "violet"],label="Eye Color", type="value"),
|
| 144 |
gr.Checkbox(label="NSFW", info="πππ")
|
| 145 |
],
|
| 146 |
flagging_options=["blurry", "incorrect", "other"],
|