Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|
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(
|