Spaces:
Sleeping
Sleeping
Upload my_logic.py
Browse files- my_logic.py +2 -1
my_logic.py
CHANGED
|
@@ -180,7 +180,8 @@ def truncate_reviews_to_fit(reviews, max_chars=127000):
|
|
| 180 |
return final
|
| 181 |
|
| 182 |
# ---- Main answer function ----
|
| 183 |
-
def answer_question(user_question):
|
|
|
|
| 184 |
print(f"\n🧠 Starting debug for question: {user_question}")
|
| 185 |
|
| 186 |
retrieved = search_reviews(user_question, top_k=100)
|
|
|
|
| 180 |
return final
|
| 181 |
|
| 182 |
# ---- Main answer function ----
|
| 183 |
+
def answer_question(user_question, gemini_model):
|
| 184 |
+
|
| 185 |
print(f"\n🧠 Starting debug for question: {user_question}")
|
| 186 |
|
| 187 |
retrieved = search_reviews(user_question, top_k=100)
|