Spaces:
Runtime error
Runtime error
updated the code with the changes ✅✅
Browse files464 unmodified lines465466467468469470471472473100 unmodified lines574575576577578579464 unmodified lineslogging.warning(f"Could not get URL parameters: {str(e)}")appointment_id_value = ""appointment_id = gr.Textbox(visible=False,value=appointment_id_value)gr.Markdown("""100 unmodified linesThis tool is for educational and research purposes only. It is not intended to provide medical advice or replace professional healthcare. Always consult with qualified healthcare providers for medical decisions.""")# Consultation completion sectionwith gr.Row():with gr.Column():464 unmodified lines465466467468469470471472473474475476477478479480481482483484485486487488489490491100 unmodified lines592593594595596597598599464 unmodified lineslogging.warning(f"Could not get URL parameters: {str(e)}")appointment_id_value = ""# Appointment ID Textbox (hidden)appointment_id = gr.Textbox(label="Appointment ID",visible=False,value=appointment_id_value if appointment_id_value else "")# Function to load appointment ID from URL parametersdef load_appointment_id():try:from gradio.context import Contextif hasattr(Context, 'request') and Context.request:return Context.request.query_params.get("appointment_id", "")except:passreturn ""# Load appointment ID when interface loadsinterface.load(fn=load_appointment_id,outputs=appointment_id)gr.Markdown("""100 unmodified linesThis tool is for educational and research purposes only. It is not intended to provide medical advice or replace professional healthcare. Always consult with qualified healthcare providers for medical decisions.""")# Consultation completion sectionwith gr.Row():with gr.Column():
mediSync/app.py+21-1