Spaces:
Runtime error
Runtime error
updated UI code ✅✅
Browse files351 unmodified lines352353354355356357358176 unmodified lines535536537538539540541542543544545546547548549550551552553541554555556557351 unmodified lines return {"status": "error", "message": f"Error: {str(e)}"}
def create_interface(): import urllib.parse app = 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.parse try: 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="", value=default_appointment_id, elem_id="appointment_id_input" )
mediSync/app.py+14-1