Spaces:
Sleeping
Sleeping
text_refine = text.replace("```json\n", "").replace("\n```", "")
Browse files
app.py
CHANGED
|
@@ -62,7 +62,8 @@ def process_image(image_url):
|
|
| 62 |
print("======image_to_text=====")
|
| 63 |
print(text)
|
| 64 |
print("========================")
|
| 65 |
-
|
|
|
|
| 66 |
return text, question_json
|
| 67 |
|
| 68 |
def image_to_text(url):
|
|
|
|
| 62 |
print("======image_to_text=====")
|
| 63 |
print(text)
|
| 64 |
print("========================")
|
| 65 |
+
text_refine = text.replace("```json\n", "").replace("\n```", "")
|
| 66 |
+
question_json = json.loads(text_refine)
|
| 67 |
return text, question_json
|
| 68 |
|
| 69 |
def image_to_text(url):
|