Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|