Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,7 @@ def detect_attributes(image):
|
|
| 74 |
}
|
| 75 |
|
| 76 |
def generate_prompt(attributes):
|
| 77 |
-
prompt = f"A {attributes['age']} {attributes['gender']} person feeling {attributes['emotion']} "
|
| 78 |
prompt += f"while {attributes['action']}. "
|
| 79 |
if attributes['objects']:
|
| 80 |
prompt += f"Image has {', '.join(attributes['objects'])}. "
|
|
|
|
| 74 |
}
|
| 75 |
|
| 76 |
def generate_prompt(attributes):
|
| 77 |
+
prompt = f"A {attributes['age']} year old {attributes['gender']} person feeling {attributes['emotion']} "
|
| 78 |
prompt += f"while {attributes['action']}. "
|
| 79 |
if attributes['objects']:
|
| 80 |
prompt += f"Image has {', '.join(attributes['objects'])}. "
|