Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,6 +54,9 @@ def responsenew(data):
|
|
| 54 |
idval = str(uuid.uuid4())
|
| 55 |
print(f"\n\n{data}")
|
| 56 |
newdata = data.replace("'", '"')
|
|
|
|
|
|
|
|
|
|
| 57 |
try:
|
| 58 |
items = json.loads(newdata)
|
| 59 |
query = items['text']
|
|
|
|
| 54 |
idval = str(uuid.uuid4())
|
| 55 |
print(f"\n\n{data}")
|
| 56 |
newdata = data.replace("'", '"')
|
| 57 |
+
items = json.loads(newdata)
|
| 58 |
+
query = items['text']
|
| 59 |
+
query = query.lower()
|
| 60 |
try:
|
| 61 |
items = json.loads(newdata)
|
| 62 |
query = items['text']
|