Spaces:
Running
Running
Terry Zhuo
commited on
Commit
·
26f174c
1
Parent(s):
e68b14d
update
Browse files
app.py
CHANGED
@@ -108,15 +108,18 @@ def create_ui():
|
|
108 |
|
109 |
with gr.Row():
|
110 |
with gr.Column():
|
|
|
|
|
|
|
111 |
month_input = gr.Dropdown(
|
112 |
choices=[f"{i:02d}" for i in range(1, 13)],
|
113 |
label="Month",
|
114 |
-
value=
|
115 |
)
|
116 |
day_input = gr.Dropdown(
|
117 |
choices=[f"{i:02d}" for i in range(1, 32)],
|
118 |
label="Day",
|
119 |
-
value=
|
120 |
)
|
121 |
query_input = gr.Textbox(
|
122 |
label="Search Query",
|
|
|
108 |
|
109 |
with gr.Row():
|
110 |
with gr.Column():
|
111 |
+
current_month = datetime.now().strftime("%m")
|
112 |
+
current_day = datetime.now().strftime("%d")
|
113 |
+
|
114 |
month_input = gr.Dropdown(
|
115 |
choices=[f"{i:02d}" for i in range(1, 13)],
|
116 |
label="Month",
|
117 |
+
value=current_month
|
118 |
)
|
119 |
day_input = gr.Dropdown(
|
120 |
choices=[f"{i:02d}" for i in range(1, 32)],
|
121 |
label="Day",
|
122 |
+
value=current_day
|
123 |
)
|
124 |
query_input = gr.Textbox(
|
125 |
label="Search Query",
|