aboalaa1472 commited on
Commit
f2b924e
Β·
verified Β·
1 Parent(s): a014e82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -14
app.py CHANGED
@@ -286,17 +286,15 @@ def create_interface():
286
  gr.Markdown("### πŸ“… Schedule Settings")
287
 
288
  start_date = gr.Textbox(
289
- label="πŸ“… Start Date",
290
  placeholder="YYYY-MM-DD (e.g., 2025-07-01)",
291
- value="2025-07-01",
292
- info="Enter start date in YYYY-MM-DD format"
293
  )
294
 
295
  end_date = gr.Textbox(
296
- label="πŸ“… End Date",
297
  placeholder="YYYY-MM-DD (e.g., 2025-08-30)",
298
- value="2025-08-30",
299
- info="Enter end date in YYYY-MM-DD format"
300
  )
301
 
302
  num_lessons = gr.Slider(
@@ -304,22 +302,19 @@ def create_interface():
304
  maximum=200,
305
  value=90,
306
  step=1,
307
- label="πŸ“š Number of Lessons",
308
- info="Total lessons to schedule"
309
  )
310
 
311
  off_days = gr.CheckboxGroup(
312
  choices=["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
313
- label="🚫 Off Days (Days you don't want to study)",
314
- value=["Sunday"],
315
- info="Select days to skip"
316
  )
317
 
318
  logo_file = gr.File(
319
- label="πŸ–ΌοΈ Upload Logo (Optional)",
320
  file_types=["image"],
321
- type="binary",
322
- info="Upload PNG, JPG, or other image for PDF header"
323
  )
324
 
325
  generate_btn = gr.Button(
 
286
  gr.Markdown("### πŸ“… Schedule Settings")
287
 
288
  start_date = gr.Textbox(
289
+ label="πŸ“… Start Date (YYYY-MM-DD format)",
290
  placeholder="YYYY-MM-DD (e.g., 2025-07-01)",
291
+ value="2025-07-01"
 
292
  )
293
 
294
  end_date = gr.Textbox(
295
+ label="πŸ“… End Date (YYYY-MM-DD format)",
296
  placeholder="YYYY-MM-DD (e.g., 2025-08-30)",
297
+ value="2025-08-30"
 
298
  )
299
 
300
  num_lessons = gr.Slider(
 
302
  maximum=200,
303
  value=90,
304
  step=1,
305
+ label="πŸ“š Number of Lessons"
 
306
  )
307
 
308
  off_days = gr.CheckboxGroup(
309
  choices=["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
310
+ label="🚫 Off Days (Select days you don't want to study)",
311
+ value=["Sunday"]
 
312
  )
313
 
314
  logo_file = gr.File(
315
+ label="πŸ–ΌοΈ Upload Logo (Optional - PNG, JPG supported)",
316
  file_types=["image"],
317
+ type="binary"
 
318
  )
319
 
320
  generate_btn = gr.Button(