Shreyas094 commited on
Commit
2ded2ed
·
verified ·
1 Parent(s): 24a7323

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -162,10 +162,9 @@ async def respond(message, history, model, temperature, num_calls, use_embedding
162
 
163
  try:
164
  # Rephrase the query
165
- analysis, rephrased_query = await rephrase_query(message, history, model)
166
 
167
- if analysis:
168
- yield f"Query Analysis: {analysis}\n\nRephrased Query: {rephrased_query}\n\nSearching the web...\n\n"
169
 
170
  async for main_content, sources in get_response_with_search(rephrased_query, model, use_embeddings, num_calls=num_calls, temperature=temperature):
171
  response = f"{main_content}\n\n{sources}"
 
162
 
163
  try:
164
  # Rephrase the query
165
+ rephrased_query = await rephrase_query(message, history, model)
166
 
167
+ yield f"Rephrased Query: {rephrased_query}\n\nSearching the web...\n\n"
 
168
 
169
  async for main_content, sources in get_response_with_search(rephrased_query, model, use_embeddings, num_calls=num_calls, temperature=temperature):
170
  response = f"{main_content}\n\n{sources}"