Spaces:
Runtime error
Runtime error
updated UI code ✅✅
Browse files351 unmodified lines352353354355356357176 unmodified lines534535536537538539540541542543544351 unmodified linesreturn {"status": "error", "message": f"Error: {str(e)}"}def create_interface():app = MediSyncApp()example_report = """CHEST X-RAY EXAMINATION176 unmodified lines)with gr.Row():appointment_id_input = gr.Textbox(label="Appointment ID",placeholder="Enter your appointment ID here...",info="This will be automatically populated if you came from the doctors page",value="",elem_id="appointment_id_input")351 unmodified lines352353354355356357358176 unmodified lines535536537538539540541542543544545546547548549550551552553554555556557351 unmodified linesreturn {"status": "error", "message": f"Error: {str(e)}"}def create_interface():import urllib.parseapp = MediSyncApp()example_report = """CHEST X-RAY EXAMINATION176 unmodified lines)with gr.Row():# --- Appointment ID auto-population logic (reference: working_hugging_face_code.py) ---import urllib.parsetry:url_params = {}if hasattr(gr, 'get_current_url'):current_url = gr.get_current_url()if current_url:parsed = urllib.parse.urlparse(current_url)url_params = urllib.parse.parse_qs(parsed.query)default_appointment_id = url_params.get('appointment_id', [''])[0]except Exception:default_appointment_id = ""appointment_id_input = gr.Textbox(label="Appointment ID",placeholder="Enter your appointment ID here...",info="This will be automatically populated if you came from the doctors page",value=default_appointment_id,elem_id="appointment_id_input")
mediSync/app.py+14-1