multimodalart HF staff commited on
Commit
9fe66a8
1 Parent(s): ccdf81e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -165,11 +165,11 @@ widget:
165
  {info["description"]}
166
 
167
  """
168
- #for index, (image, prompt) in enumerate(zip(downloaded_files["imageName"], downloaded_files["imagePrompt"])):
169
- # if index == 1:
170
- # content += f"## Image examples for the model:\n![Image {index}]({image})\n> {prompt}\n"
171
- # elif index > 1:
172
- # content += f"\n![Image {index}]({image})\n> {prompt}\n"
173
  readme_content += content + "\n"
174
  print(readme_content)
175
  with open(f"{folder}/README.md", "w") as file:
 
165
  {info["description"]}
166
 
167
  """
168
+ for index, (image, prompt) in enumerate(zip(downloaded_files["imageName"], downloaded_files["imagePrompt"])):
169
+ if index == 1:
170
+ content += f"## Image examples for the model:\n![Image {index}]({image})\n> {prompt}\n"
171
+ elif index > 1:
172
+ content += f"\n![Image {index}]({image})\n> {prompt}\n"
173
  readme_content += content + "\n"
174
  print(readme_content)
175
  with open(f"{folder}/README.md", "w") as file: