Spaces:
Sleeping
Sleeping
Commit ·
e2185df
1
Parent(s): b01cc1b
Fix dropdowns not being interactive
Browse files
app.py
CHANGED
|
@@ -440,8 +440,8 @@ with gr.Blocks(title="School Name Resolver") as app:
|
|
| 440 |
with gr.Column(scale=1):
|
| 441 |
marksheet_input = gr.Textbox(label="Marksheet Name", placeholder="Enter exact name to map...", max_lines=1)
|
| 442 |
with gr.Row():
|
| 443 |
-
month_input = gr.Dropdown(label="Month", choices=["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], value=datetime.now().strftime("%b"))
|
| 444 |
-
year_input = gr.Dropdown(label="Year", choices=[str(y) for y in range(2000, datetime.now().year + 2)], value=str(datetime.now().year))
|
| 445 |
map_btn = gr.Button("Save Alias", elem_classes="btn-map")
|
| 446 |
status_text = gr.Textbox(show_label=False, interactive=False, visible=False, elem_classes="map-status", max_lines=1)
|
| 447 |
|
|
|
|
| 440 |
with gr.Column(scale=1):
|
| 441 |
marksheet_input = gr.Textbox(label="Marksheet Name", placeholder="Enter exact name to map...", max_lines=1)
|
| 442 |
with gr.Row():
|
| 443 |
+
month_input = gr.Dropdown(label="Month", choices=["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], value=datetime.now().strftime("%b"), interactive=True)
|
| 444 |
+
year_input = gr.Dropdown(label="Year", choices=[str(y) for y in range(2000, datetime.now().year + 2)], value=str(datetime.now().year), interactive=True)
|
| 445 |
map_btn = gr.Button("Save Alias", elem_classes="btn-map")
|
| 446 |
status_text = gr.Textbox(show_label=False, interactive=False, visible=False, elem_classes="map-status", max_lines=1)
|
| 447 |
|