xd11yggy commited on
Commit
8db0d23
Β·
verified Β·
1 Parent(s): 5081ce5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -9
app.py CHANGED
@@ -90,15 +90,17 @@ def respond(
90
 
91
  search_results = process_searches(response)
92
 
93
- if search_results:
94
- search_cycle = True
95
- messages.append({"role": "assistant", "content": response})
96
- messages.append({
97
- "role": "user",
98
- "content": f"SEARCH RESULTS:\n{search_results}\nAnalyze these results and provide a well-structured answer with sources."
99
- })
100
- full_response += "\nπŸ” Analyzing search results...\n"
101
- yield full_response
 
 
102
 
103
  demo = gr.ChatInterface(
104
  respond,
 
90
 
91
  search_results = process_searches(response)
92
 
93
+ if search_results:
94
+ search_cycle = True
95
+ messages.append({"role": "assistant", "content": response})
96
+ messages.append({
97
+ "role": "user",
98
+ "content": f"SEARCH RESULTS:\n{search_results}\nAnalyze these results..."
99
+ })
100
+ # Add this line to display queries
101
+ full_response += f"\nπŸ” SEARCH QUERIES USED:\n{chr(10).join(queries)}\n\n" # ← NEW
102
+ full_response += "\nπŸ” Analyzing search results...\n"
103
+ yield full_response
104
 
105
  demo = gr.ChatInterface(
106
  respond,