Update ui/gradio_interface.py
Browse files- ui/gradio_interface.py +1 -1
ui/gradio_interface.py
CHANGED
|
@@ -197,7 +197,7 @@ with gr.Blocks(title="Agentic Credit Card Recommender", css=custom_css, theme=gr
|
|
| 197 |
return top_card_md, gr.update(visible=recommendation_visible), card_table_md, gr.update(visible=df_visible), gr.update(visible=df_visible), card_names_out, card_lookup_out, query, chat_container_visible, initial_context,gr.update(value=card_links_section, visible=True), gr.update(value="### 🔗 Issuer Links", visible=True)
|
| 198 |
|
| 199 |
except Exception as e:
|
| 200 |
-
error_message = "### Service Unavailable\n
|
| 201 |
debug_print("ERROR", f"recommend function error: {str(e)}")
|
| 202 |
return (
|
| 203 |
gr.update(value=error_message, visible=True),
|
|
|
|
| 197 |
return top_card_md, gr.update(visible=recommendation_visible), card_table_md, gr.update(visible=df_visible), gr.update(visible=df_visible), card_names_out, card_lookup_out, query, chat_container_visible, initial_context,gr.update(value=card_links_section, visible=True), gr.update(value="### 🔗 Issuer Links", visible=True)
|
| 198 |
|
| 199 |
except Exception as e:
|
| 200 |
+
error_message = "### Service Unavailable\n The AI model server could not be reached or an error occurred. Please try again later."
|
| 201 |
debug_print("ERROR", f"recommend function error: {str(e)}")
|
| 202 |
return (
|
| 203 |
gr.update(value=error_message, visible=True),
|