Not-Adam commited on
Commit
a682438
1 Parent(s): 772efae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -213,7 +213,8 @@ def generate_prompt(category: Optional[str], tags: Optional[Set[str]],
213
  print(attributes)
214
  for attr in attributes:
215
  print(attr)
216
- formatted_attributes = [f"{attr['key']}: {attr['value']}" for attr in attributes] if attributes else []
 
217
 
218
  formatted_string = "\\n".join(formatted_attributes) if formatted_attributes else "No attributes provided."
219
 
 
213
  print(attributes)
214
  for attr in attributes:
215
  print(attr)
216
+ print(attributes[attr])
217
+ formatted_attributes = [f"{attr}: {attributes[attr]}" for attr in attributes] if attributes else []
218
 
219
  formatted_string = "\\n".join(formatted_attributes) if formatted_attributes else "No attributes provided."
220