pabloce commited on
Commit
b645949
·
verified ·
1 Parent(s): 6b8c210

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -114,7 +114,7 @@ def search_web(search_query: str):
114
  result_string += web_info
115
 
116
  res = result_string.strip()
117
- return "Based on the following results, answer the previous user query:\nResults:\n\n" + res[:get_context_by_model(model_selected)]
118
 
119
 
120
  def get_messages_formatter_type(model_name):
@@ -222,7 +222,7 @@ def respond(
222
  demo = gr.ChatInterface(
223
  respond,
224
  additional_inputs=[
225
- gr.Textbox(value="You are a helpful assistant.", label="System message"),
226
  gr.Slider(minimum=1, maximum=4096, value=2048, step=1, label="Max tokens"),
227
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
228
  gr.Slider(
 
114
  result_string += web_info
115
 
116
  res = result_string.strip()
117
+ return "Based on the following results, Summarize and answer the previous user query:\nResults:\n\n" + res[:get_context_by_model(model_selected)]
118
 
119
 
120
  def get_messages_formatter_type(model_name):
 
222
  demo = gr.ChatInterface(
223
  respond,
224
  additional_inputs=[
225
+ gr.Textbox(value="You are an advanced AI agent for summarizing and answer search engine result.", label="System message"),
226
  gr.Slider(minimum=1, maximum=4096, value=2048, step=1, label="Max tokens"),
227
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
228
  gr.Slider(