Spaces:
Sleeping
Sleeping
import gradio as gr | |
def register_patient_page(): | |
import register_patient | |
return register_patient.create_gradio_interface() | |
def book_appointment_page(): | |
import book_appointment | |
return book_appointment.create_gradio_interface() | |
def consultation_page(): | |
import consultation | |
return consultation.gradio_interface() | |
def view_consultation_page(): | |
import view_consultation | |
return view_consultation.gradio_interface() | |
def view_appointments_page(): | |
import view_appointments | |
return view_appointments.gradio_interface() | |
def add_reports_page(): | |
import add_reports | |
return add_reports.gradio_interface() | |
def view_patient_reports_page(): | |
import view_patient_reports | |
return view_patient_reports.create_gradio_interface() | |
def connect_doctor_page(): | |
import connect_doctor | |
return connect_doctor.gradio_interface() | |
with gr.Blocks() as app: | |
gr.Markdown("## Patient Management App") | |
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() | |