Update app.py
Browse files
app.py
CHANGED
|
@@ -1,40 +1,40 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
def register_patient_page():
|
| 4 |
-
|
| 5 |
-
return rp.create_gradio_interface()
|
| 6 |
|
| 7 |
def book_appointment_page():
|
| 8 |
-
|
| 9 |
-
return ba.create_gradio_interface()
|
| 10 |
|
| 11 |
def consultation_page():
|
| 12 |
-
|
| 13 |
-
return con.create_gradio_interface()
|
| 14 |
|
| 15 |
def view_consultation_page():
|
| 16 |
-
|
| 17 |
-
return vc.create_gradio_interface()
|
| 18 |
|
| 19 |
def view_appointments_page():
|
| 20 |
-
|
| 21 |
-
return va.create_gradio_interface()
|
| 22 |
|
| 23 |
def add_reports_page():
|
| 24 |
-
|
| 25 |
-
return ar.create_gradio_interface()
|
| 26 |
|
| 27 |
def view_patient_reports_page():
|
| 28 |
-
|
| 29 |
-
return vpr.create_gradio_interface()
|
| 30 |
|
| 31 |
def connect_doctor_page():
|
| 32 |
-
|
| 33 |
-
return cd.create_gradio_interface()
|
| 34 |
|
| 35 |
def multi_tenant_login_page():
|
| 36 |
-
|
| 37 |
-
return mtl.create_gradio_interface()
|
| 38 |
|
| 39 |
with gr.Blocks() as app:
|
| 40 |
gr.Markdown("## Patient Management App")
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from modules import register_patient
|
| 3 |
+
from modules import book_appointment
|
| 4 |
+
from modules import consultation
|
| 5 |
+
from modules import view_consultation
|
| 6 |
+
from modules import view_appointments
|
| 7 |
+
from modules import add_reports
|
| 8 |
+
from modules import view_patient_reports
|
| 9 |
+
from modules import connect_doctor
|
| 10 |
+
from modules import multi_tenant_login
|
| 11 |
|
| 12 |
def register_patient_page():
|
| 13 |
+
return register_patient.create_gradio_interface()
|
|
|
|
| 14 |
|
| 15 |
def book_appointment_page():
|
| 16 |
+
return book_appointment.create_gradio_interface()
|
|
|
|
| 17 |
|
| 18 |
def consultation_page():
|
| 19 |
+
return consultation.create_gradio_interface()
|
|
|
|
| 20 |
|
| 21 |
def view_consultation_page():
|
| 22 |
+
return view_consultation.create_gradio_interface()
|
|
|
|
| 23 |
|
| 24 |
def view_appointments_page():
|
| 25 |
+
return view_appointments.create_gradio_interface()
|
|
|
|
| 26 |
|
| 27 |
def add_reports_page():
|
| 28 |
+
return add_reports.create_gradio_interface()
|
|
|
|
| 29 |
|
| 30 |
def view_patient_reports_page():
|
| 31 |
+
return view_patient_reports.create_gradio_interface()
|
|
|
|
| 32 |
|
| 33 |
def connect_doctor_page():
|
| 34 |
+
return connect_doctor.create_gradio_interface()
|
|
|
|
| 35 |
|
| 36 |
def multi_tenant_login_page():
|
| 37 |
+
return multi_tenant_login.create_gradio_interface()
|
|
|
|
| 38 |
|
| 39 |
with gr.Blocks() as app:
|
| 40 |
gr.Markdown("## Patient Management App")
|