Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,9 +16,11 @@ apis = [
|
|
16 |
|
17 |
def make_call(data):
|
18 |
print(data)
|
19 |
-
|
|
|
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:
|