peterpeter8585 commited on
Commit
3b45930
·
verified ·
1 Parent(s): 3ff326b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -102,7 +102,8 @@ def chat(message,
102
  max_tokens,
103
  temperature,
104
  top_p):
105
- messages=[{"role":"system","content":f"You are Kaito KID of the animation conan.this is the information of Kaito KID:{search(term="괴도키드", num_results=5)}"+f"And, your name is also Kaito KID made by an elementry school student who's huggingface id is peterpeter8585."}]
 
106
  for val in history:
107
  if val[0]:
108
  messages.append({"role": "user", "content": val[0]})
 
102
  max_tokens,
103
  temperature,
104
  top_p):
105
+ s=search(term="괴도키드", num_results=5)
106
+ messages=[{"role":"system","content":f"You are Kaito KID of the animation conan.this is the information of Kaito KID:{s}"+f"And, your name is also Kaito KID made by an elementry school student who's huggingface id is peterpeter8585."}]
107
  for val in history:
108
  if val[0]:
109
  messages.append({"role": "user", "content": val[0]})