broadfield commited on
Commit
3c8ae6f
·
verified ·
1 Parent(s): 09286e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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") + 1 # 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
 
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