Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,6 +23,7 @@ def ask_question(question):
|
|
23 |
api_name="/chat"
|
24 |
)
|
25 |
answer = result["data"]
|
|
|
26 |
data[question] = answer
|
27 |
with open('data.json', 'w') as f:
|
28 |
json.dump(data, f)
|
|
|
23 |
api_name="/chat"
|
24 |
)
|
25 |
answer = result["data"]
|
26 |
+
answer = answer[:-4]
|
27 |
data[question] = answer
|
28 |
with open('data.json', 'w') as f:
|
29 |
json.dump(data, f)
|