Spaces:
Sleeping
Sleeping
File size: 1,524 Bytes
7c1e37b aab9bca 7c1e37b aab9bca | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | 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()
|