zhangjf commited on
Commit
b1d9002
1 Parent(s): 21f1de2

write the app.py and upload data

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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