Spaces:
Running
Running
broadfield
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -137,14 +137,15 @@ def parse_json(inp):
|
|
137 |
tog=False
|
138 |
cnt=0
|
139 |
for line in inp.split("\n"):
|
|
|
|
|
140 |
if "```" in line:
|
141 |
cnt+=1
|
142 |
if cnt==1:
|
143 |
tog = True
|
144 |
elif cnt==2:
|
145 |
tog = False
|
146 |
-
|
147 |
-
lines+=line
|
148 |
print(lines)
|
149 |
out_json=eval(lines)
|
150 |
try:
|
|
|
137 |
tog=False
|
138 |
cnt=0
|
139 |
for line in inp.split("\n"):
|
140 |
+
if tog==True:
|
141 |
+
lines+=line
|
142 |
if "```" in line:
|
143 |
cnt+=1
|
144 |
if cnt==1:
|
145 |
tog = True
|
146 |
elif cnt==2:
|
147 |
tog = False
|
148 |
+
|
|
|
149 |
print(lines)
|
150 |
out_json=eval(lines)
|
151 |
try:
|