broadfield commited on
Commit
46dc7d2
·
verified ·
1 Parent(s): 6c6fe07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -136,8 +136,8 @@ def parse_json(inp):
136
  if type(inp)==type(""):
137
  lines=""
138
  if "```" in inp:
139
- start = string.find("```json") + 1 # Find index after the start character
140
- end = string.find("```", start) # Find index of end character from the start index
141
  if start >= 0 and end >= 0:
142
  json1= string[start:end] # Slice the string between start and end
143
  else:
 
136
  if type(inp)==type(""):
137
  lines=""
138
  if "```" in 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= string[start:end] # Slice the string between start and end
143
  else: