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