Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -139,7 +139,7 @@ def parse_json(inp):
|
|
| 139 |
start = inp.find("```json") + 1 # Find index after the start character
|
| 140 |
end = inp.find("```", start) # Find index of end character from the start index
|
| 141 |
if start >= 0 and end >= 0:
|
| 142 |
-
json1=
|
| 143 |
else:
|
| 144 |
json1="NONE" # Return None if characters not found
|
| 145 |
'''tog=False
|
|
|
|
| 139 |
start = inp.find("```json") + 1 # Find index after the start character
|
| 140 |
end = inp.find("```", start) # Find index of end character from the start index
|
| 141 |
if start >= 0 and end >= 0:
|
| 142 |
+
json1= inp[start:end] # Slice the string between start and end
|
| 143 |
else:
|
| 144 |
json1="NONE" # Return None if characters not found
|
| 145 |
'''tog=False
|