Spaces:
Running
Running
Commit
•
40ad051
1
Parent(s):
25190da
Update app.py
Browse files
app.py
CHANGED
@@ -144,12 +144,12 @@ widget:
|
|
144 |
{info["description"]}
|
145 |
|
146 |
"""
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
print(readme_content)
|
154 |
with open(f"{folder}/README.md", "w") as file:
|
155 |
file.write(readme_content)
|
|
|
144 |
{info["description"]}
|
145 |
|
146 |
"""
|
147 |
+
for index, (image, prompt) in enumerate(zip(downloaded_files["imageName"], downloaded_files["imagePrompt"])):
|
148 |
+
if index == 1:
|
149 |
+
content += f"## Image examples for the model:\n![Image {index}]({image})\n> {prompt}\n"
|
150 |
+
elif index > 1:
|
151 |
+
content += f"\n![Image {index}]({image})\n> {prompt}\n"
|
152 |
+
readme_content += content + "\n"
|
153 |
print(readme_content)
|
154 |
with open(f"{folder}/README.md", "w") as file:
|
155 |
file.write(readme_content)
|