Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -181,7 +181,7 @@ def main_process(files, tanggal_berangkat, tanggal_pulang):
|
|
| 181 |
|
| 182 |
# Gradio UI update: add ".zip" to accepted file types
|
| 183 |
with gr.Blocks() as demo:
|
| 184 |
-
gr.Markdown("## π§
|
| 185 |
|
| 186 |
file_input = gr.File(
|
| 187 |
label="Upload PDFs, Images or ZIP files (Multiple Supported)",
|
|
@@ -200,11 +200,9 @@ with gr.Blocks() as demo:
|
|
| 200 |
placeholder="Masukan Tanggal Kepulangan",
|
| 201 |
type="text"
|
| 202 |
)
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
output = gr.Textbox(label="π Summary Result", lines=20)
|
| 208 |
|
| 209 |
run_btn.click(fn=main_process,
|
| 210 |
inputs=[file_input, tanggal_berangkat, tanggal_pulang],
|
|
|
|
| 181 |
|
| 182 |
# Gradio UI update: add ".zip" to accepted file types
|
| 183 |
with gr.Blocks() as demo:
|
| 184 |
+
gr.Markdown("## π§ Noura the Document Checker βοΈ ")
|
| 185 |
|
| 186 |
file_input = gr.File(
|
| 187 |
label="Upload PDFs, Images or ZIP files (Multiple Supported)",
|
|
|
|
| 200 |
placeholder="Masukan Tanggal Kepulangan",
|
| 201 |
type="text"
|
| 202 |
)
|
| 203 |
+
run_btn = gr.Button("π Run Analysis")
|
| 204 |
+
download_output = gr.File(label="π₯ Download Summary as DOCX", visible=True)
|
| 205 |
+
output = gr.Textbox(label="π Summary Result", lines=50)
|
|
|
|
|
|
|
| 206 |
|
| 207 |
run_btn.click(fn=main_process,
|
| 208 |
inputs=[file_input, tanggal_berangkat, tanggal_pulang],
|