Spaces:
Running
Running
Commit
•
cacf670
1
Parent(s):
0965f85
Update app.py
Browse files
app.py
CHANGED
@@ -128,10 +128,10 @@ widget:{widget_prompts}
|
|
128 |
|
129 |
"""
|
130 |
for index, (image, prompt) in enumerate(zip(downloaded_files["imageName"], downloaded_files["imagePrompt"])):
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
readme_content += content + "\n"
|
136 |
|
137 |
with open(f"{folder}/README.md", "w") as file:
|
|
|
128 |
|
129 |
"""
|
130 |
for index, (image, prompt) in enumerate(zip(downloaded_files["imageName"], downloaded_files["imagePrompt"])):
|
131 |
+
if index == 1:
|
132 |
+
content += f"## Image examples for the model:\n![Image {index}]({image})\n> Prompt: {prompt}"
|
133 |
+
elif index > 1:
|
134 |
+
content += f"\n![Image {index}]({image})\n> Prompt: {prompt}"
|
135 |
readme_content += content + "\n"
|
136 |
|
137 |
with open(f"{folder}/README.md", "w") as file:
|