Spaces:
Sleeping
Sleeping
Commit
•
b733e0d
1
Parent(s):
062a0a8
Update app.py
Browse files
app.py
CHANGED
@@ -161,7 +161,7 @@ def run_captioning_spaces(images, concept_sentence, *captions):
|
|
161 |
api_name="/process_image"
|
162 |
)[0]
|
163 |
print(f"Caption: {answer}")
|
164 |
-
if(answer.startswith(
|
165 |
print("enter detailed")
|
166 |
answer = answer.replace("'<DETAILED_CAPTION>'", '"<DETAILED_CAPTION>"')
|
167 |
else:
|
|
|
161 |
api_name="/process_image"
|
162 |
)[0]
|
163 |
print(f"Caption: {answer}")
|
164 |
+
if(answer.startswith('''{'<DETAILED_CAPTION>': "''')):
|
165 |
print("enter detailed")
|
166 |
answer = answer.replace("'<DETAILED_CAPTION>'", '"<DETAILED_CAPTION>"')
|
167 |
else:
|