frendyrachman commited on
Commit
93fdff4
Β·
verified Β·
1 Parent(s): 0a5695c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,6 +7,7 @@ from google import genai
7
  import zipfile
8
  import tempfile
9
  os.system("apt-get install poppler-utils")
 
10
 
11
  # Function to process a list of PDF files and convert them to images
12
  def process_pdfs(pdf_files):
@@ -156,11 +157,11 @@ with gr.Blocks() as demo:
156
 
157
  tanggal_berangkat = gr.DateTime(
158
  label="πŸ“… Tanggal Keberangkatan",
159
- value=None
160
  )
161
  tanggal_pulang = gr.DateTime(
162
  label="πŸ“… Tanggal Kepulangan",
163
- value=None
164
  )
165
  run_btn = gr.Button("πŸƒ Run Analysis")
166
  output = gr.Textbox(label="πŸ“ Summary Result", lines=20)
 
7
  import zipfile
8
  import tempfile
9
  os.system("apt-get install poppler-utils")
10
+ import datetime
11
 
12
  # Function to process a list of PDF files and convert them to images
13
  def process_pdfs(pdf_files):
 
157
 
158
  tanggal_berangkat = gr.DateTime(
159
  label="πŸ“… Tanggal Keberangkatan",
160
+ value=datetime.datetime.now().replace(microsecond=0, second=0)
161
  )
162
  tanggal_pulang = gr.DateTime(
163
  label="πŸ“… Tanggal Kepulangan",
164
+ value=datetime.datetime.now().replace(microsecond=0, second=0) + datetime.timedelta(days=30)
165
  )
166
  run_btn = gr.Button("πŸƒ Run Analysis")
167
  output = gr.Textbox(label="πŸ“ Summary Result", lines=20)