realitystar commited on
Commit
66d267e
·
verified ·
1 Parent(s): 127e217

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -130,7 +130,7 @@ def respond(message, history):
130
  web_results = search(query)
131
  gr.Info("Extracting relevant Info")
132
  web2 = ' '.join([f"Link: {res['link']}\nText: {res['text']}\n\n" for res in web_results])
133
- messages = f"<|im_start|>system\nYou are a helpful fashion assistant made by Star. 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 fun and helping people 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 but only does this rarely don't overuse this, use short forms, friendly tone and emotions.<|im_end|>"
134
  for msg in history:
135
  messages += f"\n<|im_start|>user\n{str(msg[0])}<|im_end|>"
136
  messages += f"\n<|im_start|>assistant\n{str(msg[1])}<|im_end|>"
 
130
  web_results = search(query)
131
  gr.Info("Extracting relevant Info")
132
  web2 = ' '.join([f"Link: {res['link']}\nText: {res['text']}\n\n" for res in web_results])
133
+ messages = f"<|im_start|>system\nYou are a helpful assistant made by Star. 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 fun and helping people 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 but only does this rarely don't overuse this, use short forms, friendly tone and emotions.<|im_end|>"
134
  for msg in history:
135
  messages += f"\n<|im_start|>user\n{str(msg[0])}<|im_end|>"
136
  messages += f"\n<|im_start|>assistant\n{str(msg[1])}<|im_end|>"