import gradio as gr from modules import register_patient from modules import book_appointment from modules import consultation from modules import view_consultation from modules import view_appointments from modules import add_reports from modules import view_patient_reports from modules import connect_doctor from modules import multi_tenant_login def register_patient_page(): return register_patient.create_gradio_interface() def book_appointment_page(): return book_appointment.create_gradio_interface() def consultation_page(): return consultation.create_gradio_interface() def view_consultation_page(): return view_consultation.create_gradio_interface() def view_appointments_page(): return view_appointments.create_gradio_interface() def add_reports_page(): return add_reports.create_gradio_interface() def view_patient_reports_page(): return view_patient_reports.create_gradio_interface() def connect_doctor_page(): return connect_doctor.create_gradio_interface() def multi_tenant_login_page(): return multi_tenant_login.create_gradio_interface() with gr.Blocks() as app: gr.Markdown("## Patient Management App") with gr.Tab("Multi-Tenant Login"): multi_tenant_login_page() with gr.Tab("Register Patient"): register_patient_page() with gr.Tab("Book Appointment"): book_appointment_page() with gr.Tab("Consultation"): consultation_page() with gr.Tab("View Consultation"): view_consultation_page() with gr.Tab("View Appointments"): view_appointments_page() with gr.Tab("Add Reports"): add_reports_page() with gr.Tab("View Patient Reports"): view_patient_reports_page() with gr.Tab("Connect Doctor"): connect_doctor_page() if __name__ == "__main__": app.launch()