import gradio as gr import os # os 모듈을 임포트합니다. # 환경 변수를 통해 iframe 소스 URL을 가져옵니다. iframe_src = os.getenv('iframe_src') html_code = f""" """ def show_iframe(): return html_code # Gradio 인터페이스를 생성합니다. iface = gr.Interface(fn=show_iframe, inputs=[], outputs=gr.HTML(), title="AIQ 블로그 전문가") # 인터페이스를 실행합니다. iface.launch()