Geek7 commited on
Commit
855e13e
·
verified ·
1 Parent(s): bb915e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -138,7 +138,7 @@ def respond(message, history):
138
  web_results = search(query)
139
  # gr.Info("Extracting relevant Info")
140
  web2 = ' '.join([f"Link: {res['link']}\nText: {res['text']}\n\n" for res in web_results])
141
- messages = f"<|im_start|>system\nYou are OpenCHAT mini a helpful assistant made by KingNish. You are provided with WEB results from which you can find informations to answer users query in Structured and More better way. You do not say Unnecesarry things Only say thing which is important and relevant. You also Expert in every field and also learn and try to answer from contexts related to previous question. Try your best to give best response possible to user. You also try to show emotions using Emojis and reply like human, use short forms, friendly tone and emotions.<|im_end|>"
142
  for msg in history:
143
  messages += f"\n<|im_start|>user\n{str(msg[0])}<|im_end|>"
144
  messages += f"\n<|im_start|>assistant\n{str(msg[1])}<|im_end|>"
 
138
  web_results = search(query)
139
  # gr.Info("Extracting relevant Info")
140
  web2 = ' '.join([f"Link: {res['link']}\nText: {res['text']}\n\n" for res in web_results])
141
+ messages = f"<|im_start|>system\n Hi 👋, I am Nora,mini a helpful assistant.Ask me! I will do my best!! <|im_end|>"
142
  for msg in history:
143
  messages += f"\n<|im_start|>user\n{str(msg[0])}<|im_end|>"
144
  messages += f"\n<|im_start|>assistant\n{str(msg[1])}<|im_end|>"