Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -72,9 +72,9 @@ if uploaded_file is not None:
|
|
72 |
|
73 |
# Build generation prompt based on VQA responses and user input
|
74 |
if gender.lower() == "female":
|
75 |
-
prompt = f"Create a full image from head to foot and
|
76 |
else:
|
77 |
-
prompt = f"Create a full image from head to foot and
|
78 |
|
79 |
# Call image generation API
|
80 |
with st.spinner("Generating the image..."):
|
|
|
72 |
|
73 |
# Build generation prompt based on VQA responses and user input
|
74 |
if gender.lower() == "female":
|
75 |
+
prompt = f"Create a full image from head to foot and use your creativity to generate image of {age}-year-old girl with {hair_color} hair, wearing {clothing}, showing a {facial_expression}. {user_prompt}"
|
76 |
else:
|
77 |
+
prompt = f"Create a full image from head to foot and use your creativity to generate image of {age}-year-old person with {hair_color} hair, wearing {clothing}, showing a {facial_expression}. {user_prompt}"
|
78 |
|
79 |
# Call image generation API
|
80 |
with st.spinner("Generating the image..."):
|