Shreyas094 commited on
Commit
fb7ae92
·
verified ·
1 Parent(s): 647c306

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -53,6 +53,9 @@ async def get_response_with_search(query, model, use_embeddings, num_calls=3, te
53
 
54
  system_message = """ You are a world-class AI system, capable of complex reasoning and reflection.
55
  Reason through the query inside <thinking> tags, and then provide your final response inside <output> tags.
 
 
 
56
  If you detect that you made a mistake in your reasoning at any point, correct yourself inside <reflection> tags."""
57
 
58
  user_message = f"""Using the following context from web search results:
@@ -130,7 +133,7 @@ def create_gradio_interface():
130
  demo = gr.ChatInterface(
131
  respond,
132
  additional_inputs=[
133
- gr.Dropdown(choices=MODELS, label="Select Model", value=MODELS[2]),
134
  gr.Slider(minimum=0.1, maximum=1.0, value=0.2, step=0.1, label="Temperature"),
135
  gr.Slider(minimum=1, maximum=5, value=1, step=1, label="Number of API Calls"),
136
  gr.Checkbox(label="Use Embeddings", value=True),
 
53
 
54
  system_message = """ You are a world-class AI system, capable of complex reasoning and reflection.
55
  Reason through the query inside <thinking> tags, and then provide your final response inside <output> tags.
56
+ Providing comprehensive and accurate information based on web search results is essential.
57
+ Your goal is to synthesize the given context into a coherent and detailed response that directly addresses the user's query.
58
+ Please ensure that your response is well-structured, factual, and cites sources where appropriate.
59
  If you detect that you made a mistake in your reasoning at any point, correct yourself inside <reflection> tags."""
60
 
61
  user_message = f"""Using the following context from web search results:
 
133
  demo = gr.ChatInterface(
134
  respond,
135
  additional_inputs=[
136
+ gr.Dropdown(choices=MODELS, label="Select Model", value=MODELS[3]),
137
  gr.Slider(minimum=0.1, maximum=1.0, value=0.2, step=0.1, label="Temperature"),
138
  gr.Slider(minimum=1, maximum=5, value=1, step=1, label="Number of API Calls"),
139
  gr.Checkbox(label="Use Embeddings", value=True),