multimodalart HF staff commited on
Commit
623bb5f
1 Parent(s): 40ad051

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -116,7 +116,8 @@ def create_readme(info, downloaded_files, link_civit=False, is_author=True, fold
116
 
117
  widget_content = ""
118
  for index, (prompt, image) in enumerate(zip(downloaded_files["imagePrompt"], downloaded_files["imageName"])):
119
- widget_content += f"""- text: '{prompt}'
 
120
  output:
121
  url: >-
122
  {image}
 
116
 
117
  widget_content = ""
118
  for index, (prompt, image) in enumerate(zip(downloaded_files["imagePrompt"], downloaded_files["imageName"])):
119
+ escaped_prompt = prompt.replace("'", "''")
120
+ widget_content += f"""- text: '{escaped_prompt}'
121
  output:
122
  url: >-
123
  {image}