Update ui/gradio_interface.py
Browse files- ui/gradio_interface.py +14 -1
ui/gradio_interface.py
CHANGED
|
@@ -198,7 +198,20 @@ with gr.Blocks(title="Agentic Credit Card Recommender", css=custom_css, theme=gr
|
|
| 198 |
except Exception as e:
|
| 199 |
error_message = f"Error during recommendation: {str(e)}"
|
| 200 |
debug_print("ERROR", f"recommend function error: {str(e)}")
|
| 201 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 202 |
|
| 203 |
#for comparison
|
| 204 |
async def compare_cards_via_graph(selected_cards, card_lookup):
|
|
|
|
| 198 |
except Exception as e:
|
| 199 |
error_message = f"Error during recommendation: {str(e)}"
|
| 200 |
debug_print("ERROR", f"recommend function error: {str(e)}")
|
| 201 |
+
return (
|
| 202 |
+
gr.update(value=error_message, visible=True),
|
| 203 |
+
gr.update(visible=True),
|
| 204 |
+
"",
|
| 205 |
+
gr.update(visible=False),
|
| 206 |
+
gr.update(visible=False),
|
| 207 |
+
[],
|
| 208 |
+
{},
|
| 209 |
+
"",
|
| 210 |
+
gr.update(visible=False),
|
| 211 |
+
{},
|
| 212 |
+
gr.update(value="", visible=False),
|
| 213 |
+
gr.update(visible=False)
|
| 214 |
+
)
|
| 215 |
|
| 216 |
#for comparison
|
| 217 |
async def compare_cards_via_graph(selected_cards, card_lookup):
|