import gradio as gr
💄 Try Our Virtual Lipstick Tool
def my_function(...):
# your function here
iface = gr.Interface(fn=my_function, inputs=..., outputs=...)
iface.launch(share=True, enable_queue=True, show_error=True,
server_name="0.0.0.0", server_port=7860,
# Add this to allow embedding
allowed_paths=["/"],
# Allow iframe embedding from your domain
app_kwargs={"headers": {
"Content-Security-Policy": "frame-ancestors https://visitor.mascana.com"
}}
)