EdBoy2202 commited on
Commit
3ad8ff2
1 Parent(s): 6dbaa74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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'])}. "