pabloce commited on
Commit
dd075f1
·
verified ·
1 Parent(s): e3f3865

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -121,7 +121,7 @@ def search_web(search_query: str):
121
  result_string += web_info
122
 
123
  res = result_string.strip()
124
- return "Based on the following results, Summarize and answer the previous user query:\nResults:\n\n" + res[:get_context_by_model(model_selected)]
125
 
126
 
127
  def get_messages_formatter_type(model_name):
@@ -223,7 +223,7 @@ def respond(
223
  demo = gr.ChatInterface(
224
  respond,
225
  additional_inputs=[
226
- gr.Textbox(value="You are an advanced AI agent for summarizing and answer search engine result.", label="System message"),
227
  gr.Slider(minimum=1, maximum=4096, value=2048, step=1, label="Max tokens"),
228
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
229
  gr.Slider(
 
121
  result_string += web_info
122
 
123
  res = result_string.strip()
124
+ return "Based on the following results, answer the previous user query:\nResults:\n\n" + res[:get_context_by_model(model_selected)]
125
 
126
 
127
  def get_messages_formatter_type(model_name):
 
223
  demo = gr.ChatInterface(
224
  respond,
225
  additional_inputs=[
226
+ gr.Textbox(value="You are a helpful assistant. Use additional available information you have access to when giving a response. Always give detailed and long responses. Format your response, well structured in markdown format.", label="System message"),
227
  gr.Slider(minimum=1, maximum=4096, value=2048, step=1, label="Max tokens"),
228
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
229
  gr.Slider(