kreemyyyy commited on
Commit
835c782
·
verified ·
1 Parent(s): d7769fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -77,11 +77,11 @@ def convert_schedule(file_path, direction):
77
  texters = days_map.get(day, [])
78
  result.at[model, day] = ', '.join(texters) if texters else 'OFF'
79
 
80
- # 5. Cleanup axis names
81
  result.index.name = None
82
  result.columns.name = None
83
 
84
- # 6. Save to Excel for download in the current working directory
85
  output_filename = f"converted_{uuid.uuid4().hex}.xlsx"
86
  output_path = os.path.join(os.getcwd(), output_filename)
87
  result.to_excel(output_path, engine='openpyxl', index=True)
@@ -110,3 +110,7 @@ def main():
110
  allow_flagging='never'
111
  )
112
  iface.launch(server_name='0.0.0.0', server_port=7860)
 
 
 
 
 
77
  texters = days_map.get(day, [])
78
  result.at[model, day] = ', '.join(texters) if texters else 'OFF'
79
 
80
+ # 5. Cleanup axis names
81
  result.index.name = None
82
  result.columns.name = None
83
 
84
+ # 6. Save to Excel for download in the current working directory
85
  output_filename = f"converted_{uuid.uuid4().hex}.xlsx"
86
  output_path = os.path.join(os.getcwd(), output_filename)
87
  result.to_excel(output_path, engine='openpyxl', index=True)
 
110
  allow_flagging='never'
111
  )
112
  iface.launch(server_name='0.0.0.0', server_port=7860)
113
+
114
+ # Call main to start the app
115
+ if __name__ == '__main__':
116
+ main()