broadfield commited on
Commit
74a3294
·
verified ·
1 Parent(s): 46dc7d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -139,7 +139,7 @@ def parse_json(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:
144
  json1="NONE" # Return None if characters not found
145
  '''tog=False
 
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= inp[start:end] # Slice the string between start and end
143
  else:
144
  json1="NONE" # Return None if characters not found
145
  '''tog=False