multimodalart HF staff commited on
Commit
27461f9
·
verified ·
1 Parent(s): 5563a5d

double quotes

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -159,7 +159,7 @@ def run_captioning_spaces(images, concept_sentence, *captions):
159
  task_prompt="Detailed Caption",
160
  text_input=None,
161
  api_name="/process_image"
162
- )[0].replace('"', '\"').replace("'", '"')
163
  print(f"Caption: {answer}")
164
  parsed_answer = json.loads(answer)
165
  caption_text = parsed_answer["<DETAILED_CAPTION>"].replace("The image shows ", "")
 
159
  task_prompt="Detailed Caption",
160
  text_input=None,
161
  api_name="/process_image"
162
+ )[0].replace('"', '\\"').replace("'", '"')
163
  print(f"Caption: {answer}")
164
  parsed_answer = json.loads(answer)
165
  caption_text = parsed_answer["<DETAILED_CAPTION>"].replace("The image shows ", "")