multimodalart HF staff commited on
Commit
928203d
1 Parent(s): c640c8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -160,8 +160,9 @@ def run_captioning_spaces(images, concept_sentence, *captions):
160
  text_input=None,
161
  api_name="/process_image"
162
  )[0]
163
-
164
  if(answer.startswith("{'<")):
 
165
  answer = answer.replace('"', '\\"').replace("'", '"')
166
  print(f"Caption: {answer}")
167
  parsed_answer = json.loads(answer)
 
160
  text_input=None,
161
  api_name="/process_image"
162
  )[0]
163
+ print(f"Caption: {answer}")
164
  if(answer.startswith("{'<")):
165
+ print("Entrou?")
166
  answer = answer.replace('"', '\\"').replace("'", '"')
167
  print(f"Caption: {answer}")
168
  parsed_answer = json.loads(answer)