Update app.py
Browse files
app.py
CHANGED
|
@@ -594,7 +594,7 @@ def recommend_cards_gradio(user_query, preferences, income, cibil, age,
|
|
| 594 |
# print(user_query)
|
| 595 |
if(user_query):
|
| 596 |
result = handle_query_classification(user_query)
|
| 597 |
-
|
| 598 |
if result["intent"] == "no_retrieval":
|
| 599 |
return (
|
| 600 |
f"<div style='background-color:#e3f2fd;padding:20px;border-radius:10px;'>"
|
|
@@ -777,7 +777,7 @@ def chat_with_gemini(user_query, user_message, chat_history, card_lookup):
|
|
| 777 |
4. If the user asks which card is best or suitable for their needs, use the user’s requirements above to select and explain.
|
| 778 |
5. Don't ask the user to restate their requirements — they're already provided above.
|
| 779 |
"""
|
| 780 |
-
print(conversation)
|
| 781 |
try:
|
| 782 |
response = model4.generate_content(conversation)
|
| 783 |
gemini_response = response.text
|
|
|
|
| 594 |
# print(user_query)
|
| 595 |
if(user_query):
|
| 596 |
result = handle_query_classification(user_query)
|
| 597 |
+
print(user_query)
|
| 598 |
if result["intent"] == "no_retrieval":
|
| 599 |
return (
|
| 600 |
f"<div style='background-color:#e3f2fd;padding:20px;border-radius:10px;'>"
|
|
|
|
| 777 |
4. If the user asks which card is best or suitable for their needs, use the user’s requirements above to select and explain.
|
| 778 |
5. Don't ask the user to restate their requirements — they're already provided above.
|
| 779 |
"""
|
| 780 |
+
# print(conversation)
|
| 781 |
try:
|
| 782 |
response = model4.generate_content(conversation)
|
| 783 |
gemini_response = response.text
|