Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -5,6 +5,7 @@ import json
|
|
| 5 |
from PIL import Image
|
| 6 |
|
| 7 |
|
|
|
|
| 8 |
def extract_json_content(text):
|
| 9 |
matches = re.search(r"```json\n(.*?)\n```", text, re.DOTALL)
|
| 10 |
if matches:
|
|
|
|
| 5 |
from PIL import Image
|
| 6 |
|
| 7 |
|
| 8 |
+
|
| 9 |
def extract_json_content(text):
|
| 10 |
matches = re.search(r"```json\n(.*?)\n```", text, re.DOTALL)
|
| 11 |
if matches:
|