varshakolanu commited on
Commit
8ac3371
·
verified ·
1 Parent(s): 9d9d29b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -365,7 +365,7 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Clinic Patient Portal") as demo:
365
  gr.Markdown("**Book an Appointment**")
366
  doctors = ["Dr. Smith", "Dr. Jones", "Dr. Patel"] # Mock doctor list
367
  doctor_input = gr.Dropdown(doctors, label="Select Doctor", value=doctors[0])
368
- date_input = gr.DatePicker(label="Select Date", value=date.today(), min_date=date.today())
369
  time_slots = ["09:00", "10:00", "11:00", "14:00", "15:00", "16:00"] # Mock slots
370
  time_input = gr.Dropdown(time_slots, label="Select Time Slot", value=time_slots[0])
371
  appt_button = gr.Button("Schedule Appointment")
 
365
  gr.Markdown("**Book an Appointment**")
366
  doctors = ["Dr. Smith", "Dr. Jones", "Dr. Patel"] # Mock doctor list
367
  doctor_input = gr.Dropdown(doctors, label="Select Doctor", value=doctors[0])
368
+ date_input = gr.Textbox(label="Select Date (YYYY-MM-DD)", value=date.today().isoformat(), placeholder="YYYY-MM-DD")
369
  time_slots = ["09:00", "10:00", "11:00", "14:00", "15:00", "16:00"] # Mock slots
370
  time_input = gr.Dropdown(time_slots, label="Select Time Slot", value=time_slots[0])
371
  appt_button = gr.Button("Schedule Appointment")