| 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: |
| |
| |
| gr.HTML(""" |
| <div style="background-color: #ffe6e6; border: 1px solid red; color: red; text-align: center; font-weight: bold; font-size: 16px; padding: 10px; border-radius: 5px; margin-bottom: 15px; margin-top: 10px;"> |
| If you still have ZEROGPU quota but cannot click run, please go to the space directly from the UI. Look for the model name in orange and blue within the UI to navigate directly to the space. |
| </div> |
| """) |
|
|
| with gr.Tabs(): |
| with gr.Tab("omni-image-editor (apifreetokenavreyday)"): |
| gr.HTML(create_iframe("https://selfit-camera-omni-image-editor.hf.space")) |
| with gr.Tab("FireRed 1.0 (macgaga)"): |
| |
| gr.HTML(create_iframe("https://macgaga-firered-image-edit-1-0-fast.hf.space")) |
| |
| with gr.Tab("FireRed 1.0 (Svngoku)"): |
| gr.HTML(create_iframe("https://svngoku-firered-image-edit-1-0-fast.hf.space")) |
| |
| with gr.Tab("FireRed 1.1 (WarlordHermes)"): |
| gr.HTML(create_iframe("https://warlordhermes-firered-image-edit-1-1-fast.hf.space")) |
|
|
| 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() |