import gradio as gr def initialize_interface(): # Create a JavaScript snippet to detect the browser language detect_language_js = """ var language = window.navigator.userLanguage || window.navigator.language; if (language === "zh-CN") { document.getElementById("container").innerHTML = `