Update app.py
Browse files
app.py
CHANGED
|
@@ -1105,17 +1105,17 @@ Get AI-powered credit card recommendations that maximize your rewards based on:
|
|
| 1105 |
custom_mcc_input = gr.Textbox(
|
| 1106 |
label="Custom MCC Code",
|
| 1107 |
placeholder="e.g., 5411",
|
| 1108 |
-
visible=False
|
| 1109 |
)
|
| 1110 |
|
| 1111 |
def toggle_custom_mcc(use_custom):
|
| 1112 |
-
return gr.update(visible=use_custom)
|
| 1113 |
|
| 1114 |
use_custom_mcc.change(
|
| 1115 |
-
|
| 1116 |
-
|
| 1117 |
-
|
| 1118 |
-
|
| 1119 |
|
| 1120 |
recommend_btn = gr.Button(
|
| 1121 |
"🚀 Get Recommendation",
|
|
|
|
| 1105 |
custom_mcc_input = gr.Textbox(
|
| 1106 |
label="Custom MCC Code",
|
| 1107 |
placeholder="e.g., 5411",
|
| 1108 |
+
visible=False, interactive=True
|
| 1109 |
)
|
| 1110 |
|
| 1111 |
def toggle_custom_mcc(use_custom):
|
| 1112 |
+
return gr.update(visible=use_custom, interactive=use_custom)
|
| 1113 |
|
| 1114 |
use_custom_mcc.change(
|
| 1115 |
+
fn=toggle_custom_mcc,
|
| 1116 |
+
inputs=[use_custom_mcc],
|
| 1117 |
+
outputs=[custom_mcc_input]
|
| 1118 |
+
)
|
| 1119 |
|
| 1120 |
recommend_btn = gr.Button(
|
| 1121 |
"🚀 Get Recommendation",
|