Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,4 +54,12 @@ def process_excel(file):
|
|
| 54 |
# Gradio interface
|
| 55 |
iface = gr.Interface(
|
| 56 |
fn=process_excel,
|
| 57 |
-
inputs=gr.File(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
# Gradio interface
|
| 55 |
iface = gr.Interface(
|
| 56 |
fn=process_excel,
|
| 57 |
+
inputs=gr.File(file_types=[".xlsx"]),
|
| 58 |
+
outputs=gr.File(label="Download Official Visit Report"),
|
| 59 |
+
title="Official Visit Extractor",
|
| 60 |
+
description="Upload an Excel file with multiple sheets. It extracts rows where 'Remarks' contains 'Official visit', and pulls Employee ID from the sheet headers."
|
| 61 |
+
)
|
| 62 |
+
|
| 63 |
+
if __name__ == "__main__":
|
| 64 |
+
iface.launch()
|
| 65 |
+
|