Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,6 +44,7 @@ def generate_text():
|
|
44 |
token = token.split()[0].strip(",.;:|") if token else ""
|
45 |
if token not in ALLOWED:
|
46 |
token = "other_query"
|
|
|
47 |
return jsonify({"response": token})
|
48 |
except Exception as e:
|
49 |
return jsonify({"response": "other_query"}), 200
|
|
|
44 |
token = token.split()[0].strip(",.;:|") if token else ""
|
45 |
if token not in ALLOWED:
|
46 |
token = "other_query"
|
47 |
+
print(token)
|
48 |
return jsonify({"response": token})
|
49 |
except Exception as e:
|
50 |
return jsonify({"response": "other_query"}), 200
|