import gradio as gr def create_interface(): with open("index.html", "r", encoding="utf-8") as f: html_content = f.read() return gr.HTML(html_content) demo = gr.Interface( fn=create_interface, inputs=[], outputs="html", title="실시간 폭력 감지 시스템", description="웹캠을 사용한 실시간 폭력 행위 감지 및 자동 촬영 시스템" ) if __name__ == "__main__": demo.launch()