Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -140,7 +140,7 @@ def parse_json(inp):
|
|
140 |
if type(inp)==type(""):
|
141 |
lines=""
|
142 |
if "```" in inp:
|
143 |
-
start = inp.find("```json") +
|
144 |
end = inp.find("```", start) # Find index of end character from the start index
|
145 |
if start >= 0 and end >= 0:
|
146 |
inp= inp[start:end] # Slice the string between start and end
|
|
|
140 |
if type(inp)==type(""):
|
141 |
lines=""
|
142 |
if "```" in inp:
|
143 |
+
start = inp.find("```json") + 7 # Find index after the start character
|
144 |
end = inp.find("```", start) # Find index of end character from the start index
|
145 |
if start >= 0 and end >= 0:
|
146 |
inp= inp[start:end] # Slice the string between start and end
|