vsrinivas commited on
Commit
839abf5
·
verified ·
1 Parent(s): f4fdbf2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -98,8 +98,8 @@ def classify_page(statement):
98
  """
99
  response = chat_session.send_message(prompt)
100
  print(response.text)
101
- response = response.text.replace("```python\n", "").replace("```", "").strip()
102
  print(response.text.replace("```python\n", "").replace("```", "").strip())
 
103
  response = re.sub(r"[^\x20-\x7E]", "", response)
104
  print(response)
105
  return ast.literal_eval(response)
 
98
  """
99
  response = chat_session.send_message(prompt)
100
  print(response.text)
 
101
  print(response.text.replace("```python\n", "").replace("```", "").strip())
102
+ response = response.text.replace("```python\n", "").replace("```", "").strip()
103
  response = re.sub(r"[^\x20-\x7E]", "", response)
104
  print(response)
105
  return ast.literal_eval(response)