CosmoAI commited on
Commit
f24a592
1 Parent(s): a4624c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -16,9 +16,11 @@ apis = [
16
 
17
  def make_call(data):
18
  print(data)
19
- items = json.loads(data)
 
20
  language = items['lang']
21
  query = items['text']
 
22
  answer = None
23
  while True:
24
  for api in apis:
 
16
 
17
  def make_call(data):
18
  print(data)
19
+ newdata = data.replace("'", '"')
20
+ items = json.loads(newdata)
21
  language = items['lang']
22
  query = items['text']
23
+ query = query.lower()
24
  answer = None
25
  while True:
26
  for api in apis: