Spaces:
Sleeping
Sleeping
fixing date input
Browse files
app.py
CHANGED
|
@@ -154,8 +154,8 @@ with gr.Blocks() as demo:
|
|
| 154 |
file_types=[".pdf", ".jpg", ".jpeg", ".png", ".zip"],
|
| 155 |
file_count="multiple"
|
| 156 |
)
|
| 157 |
-
gr.Textbox(label="π
Tanggal Keberangkatan", value=
|
| 158 |
-
gr.Textbox(label="π
Tanggal Kepulangan", value=
|
| 159 |
run_btn = gr.Button("π Run Analysis")
|
| 160 |
output = gr.Textbox(label="π Summary Result", lines=20)
|
| 161 |
run_btn.click(fn=main_process, inputs=[file_input, tanggal_berangkat, tanggal_pulang], outputs=output)
|
|
|
|
| 154 |
file_types=[".pdf", ".jpg", ".jpeg", ".png", ".zip"],
|
| 155 |
file_count="multiple"
|
| 156 |
)
|
| 157 |
+
gr.Textbox(label="π
Tanggal Keberangkatan", value=str(datetime.date.today())),
|
| 158 |
+
gr.Textbox(label="π
Tanggal Kepulangan", value=str(datetime.date.today() + datetime.timedelta(days=7)))
|
| 159 |
run_btn = gr.Button("π Run Analysis")
|
| 160 |
output = gr.Textbox(label="π Summary Result", lines=20)
|
| 161 |
run_btn.click(fn=main_process, inputs=[file_input, tanggal_berangkat, tanggal_pulang], outputs=output)
|