Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -90,15 +90,17 @@ def respond(
|
|
90 |
|
91 |
search_results = process_searches(response)
|
92 |
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
|
|
|
|
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,
|