imranalishah commited on
Commit
857c739
·
verified ·
1 Parent(s): 565233e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
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(file_types_
 
 
 
 
 
 
 
 
 
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
+