multimodalart HF staff commited on
Commit
cacf670
1 Parent(s): 0965f85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- 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:
 
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: