import gradio as gr import datetime def update_content(): current_time = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") return f"界面已更新,当前时间: {current_time}" with gr.Blocks() as demo: gr.HTML("""