hospi / app.py
yougandar's picture
Update app.py
5536684 verified
raw
history blame contribute delete
953 Bytes
import gradio as gr
import patient_registration # Assuming both scripts are in the same directory
import connect_doctor # Assuming both scripts are in the same directory
import consultation # Assuming all scripts are in the same directory
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()