Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
| 160 |
)
|
| 161 |
tanggal_pulang = gr.DateTime(
|
| 162 |
label="π
Tanggal Kepulangan",
|
| 163 |
-
value=
|
| 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)
|