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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -211,6 +211,8 @@ def generate_prompt(category: Optional[str], tags: Optional[Set[str]],
211
  materials: Optional[List[Dict[str, int]]], attributes: Optional[List[Dict[str, str]]]) -> str:
212
 
213
  print(attributes)
 
 
214
  formatted_attributes = [f"{attr['key']}: {attr['value']}" for attr in attributes] if attributes else []
215
 
216
  formatted_string = "\\n".join(formatted_attributes) if formatted_attributes else "No attributes provided."
 
211
  materials: Optional[List[Dict[str, int]]], attributes: Optional[List[Dict[str, str]]]) -> str:
212
 
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."