multimodalart HF staff commited on
Commit
5bb4ddd
1 Parent(s): d454090

Update app.py

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