Spaces:
Running
Running
Commit
·
7899646
1
Parent(s):
6531480
Update app.py
Browse files
app.py
CHANGED
@@ -126,16 +126,16 @@ widget:
|
|
126 |
{non_author_disclaimer if not is_author else ''}
|
127 |
|
128 |
![Image 0]({downloaded_files["imageName"][0]})
|
129 |
-
>
|
130 |
|
131 |
{info["description"]}
|
132 |
|
133 |
"""
|
134 |
for index, (image, prompt) in enumerate(zip(downloaded_files["imageName"], downloaded_files["imagePrompt"])):
|
135 |
if index == 1:
|
136 |
-
content += f"## Image examples for the model:\n![Image {index}]({image})\n> Prompt: {prompt}"
|
137 |
elif index > 1:
|
138 |
-
content += f"\n![Image {index}]({image})\n> Prompt: {prompt}"
|
139 |
readme_content += content + "\n"
|
140 |
print(readme_content)
|
141 |
with open(f"{folder}/README.md", "w") as file:
|
|
|
126 |
{non_author_disclaimer if not is_author else ''}
|
127 |
|
128 |
![Image 0]({downloaded_files["imageName"][0]})
|
129 |
+
> {downloaded_files["imagePrompt"][0]}
|
130 |
|
131 |
{info["description"]}
|
132 |
|
133 |
"""
|
134 |
for index, (image, prompt) in enumerate(zip(downloaded_files["imageName"], downloaded_files["imagePrompt"])):
|
135 |
if index == 1:
|
136 |
+
content += f"## Image examples for the model:\n![Image {index}]({image})\n> Prompt: {prompt}\n"
|
137 |
elif index > 1:
|
138 |
+
content += f"\n![Image {index}]({image})\n> Prompt: {prompt}\n"
|
139 |
readme_content += content + "\n"
|
140 |
print(readme_content)
|
141 |
with open(f"{folder}/README.md", "w") as file:
|