Spaces:
Running
Running
Commit
·
9236c99
1
Parent(s):
4f448b7
Update app.py
Browse files
app.py
CHANGED
@@ -139,20 +139,17 @@ widget:
|
|
139 |
|
140 |
{non_author_disclaimer if not is_author else ''}
|
141 |
|
142 |
-
![Image 0]({downloaded_files["imageName"][0]})
|
143 |
-
> {downloaded_files["imagePrompt"][0]}
|
144 |
-
|
145 |
{link_civit_disclaimer if link_civit else ''}
|
146 |
|
147 |
{info["description"]}
|
148 |
|
149 |
"""
|
150 |
-
for index, (image, prompt) in enumerate(zip(downloaded_files["imageName"], downloaded_files["imagePrompt"])):
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
readme_content += content + "\n"
|
156 |
print(readme_content)
|
157 |
with open(f"{folder}/README.md", "w") as file:
|
158 |
file.write(readme_content)
|
|
|
139 |
|
140 |
{non_author_disclaimer if not is_author else ''}
|
141 |
|
|
|
|
|
|
|
142 |
{link_civit_disclaimer if link_civit else ''}
|
143 |
|
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)
|