Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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."
|