write the app.py and upload data
Browse files
app.py
CHANGED
@@ -129,7 +129,7 @@ def showcase(access_key):
|
|
129 |
recent_qas = qas[:10]
|
130 |
chatbot_ret = [(f"Your entered Access Key is correct.", f"The latest {len(recent_qas)} query-responses are displayed below.")]
|
131 |
for qa in recent_qas:
|
132 |
-
chatbot_ret += [(qa["q"],qa["a"])]
|
133 |
return chatbot_ret
|
134 |
|
135 |
|
|
|
129 |
recent_qas = qas[:10]
|
130 |
chatbot_ret = [(f"Your entered Access Key is correct.", f"The latest {len(recent_qas)} query-responses are displayed below.")]
|
131 |
for qa in recent_qas:
|
132 |
+
chatbot_ret += [(qa["q"].replace("\n","<br>"), qa["a"].replace("\n","<br>"))]
|
133 |
return chatbot_ret
|
134 |
|
135 |
|