File size: 910 Bytes
dc8114e
 
3ad4dce
 
 
 
 
 
 
 
 
 
 
acd4894
3ad4dce
330bbfd
3ad4dce
fb0c6dd
fcc1bb8
3ad4dce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import gradio as gr

def create_iframe(url):
    return f"""
    <iframe 
        src="{url}" 
        width="100%" 
        height="1000px" 
        style="border: none;"
        allow="accelerometer; ambient-light-sensor; autoplay; battery; camera; document-domain; encrypted-media; fullscreen; geolocation; gyroscope; layout-animations; legacy-image-formats; magnetometer; microphone; midi; oversized-images; payment; picture-in-picture; publickey-credentials-get; sync-xhr; usb; vr; wake-lock; xr-spatial-tracking"
        sandbox="allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-downloads">
    </iframe>
    """

with gr.Blocks(fill_height=True) as demo:
        with gr.Tab("FireRed Image Edit 1.1 Fast(Bianji (fdsgsfjsfg)"):
            gr.HTML(create_iframe("https://fdsgsfjsfg-bianji.hf.space"))

if __name__ == "__main__":
    demo.launch()