Update app.py
Browse files
app.py
CHANGED
@@ -218,7 +218,7 @@ def ask_question(question, temperature, top_p, repetition_penalty, web_search):
|
|
218 |
|
219 |
for attempt in range(max_attempts):
|
220 |
try:
|
221 |
-
|
222 |
original_query = question
|
223 |
rephrased_query = rephrase_for_search(original_query, model)
|
224 |
print(f"Original query: {original_query}")
|
|
|
218 |
|
219 |
for attempt in range(max_attempts):
|
220 |
try:
|
221 |
+
if web_search:
|
222 |
original_query = question
|
223 |
rephrased_query = rephrase_for_search(original_query, model)
|
224 |
print(f"Original query: {original_query}")
|