broadfield commited on
Commit
f1e5eef
·
verified ·
1 Parent(s): 29a3f66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- if tog==True:
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: