| import gradio as gr |
| import patient_registration |
| import connect_doctor |
| import consultation |
|
|
| def main_interface(): |
| """Main interface that allows switching between patient registration, connecting to doctor, and consultation.""" |
| with gr.Blocks() as demo: |
| gr.Markdown("## Doctor Appointment Application") |
| |
| with gr.Tabs(): |
| with gr.Tab("Patient Registration"): |
| patient_registration.create_registration_interface() |
| |
| with gr.Tab("Connect Doctor"): |
| connect_doctor.create_connect_doctor_interface() |
| |
| with gr.Tab("Consultation"): |
| consultation.create_consultation_interface() |
| |
| return demo |
|
|
| if __name__ == "__main__": |
| main_interface().launch() |
|
|