Spaces:
Running
Running
File size: 798 Bytes
97a8955 61be94d 97a8955 478cd34 97a8955 61be94d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# This is a simple Gradio app that embeds an iframe to display an external Hugging Face Space.
import gradio as gr
# Define the CSS to embed the iframe
css = """
.iframe-container {
position: relative;
width: 100%;
height: 0;
padding-bottom: 100%;
}
.iframe-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
"""
# Create a Gradio Blocks app
with gr.Blocks(css=css) as demo:
# Add a Markdown component to provide some context
gr.Markdown("## Centurion AI DeepFake Detector")
# Add a HTML component to embed the iframe
gr.HTML('<div class="iframe-container"><iframe src="https://noumanjavaid-centurion.hf.space"></iframe></div>')
# Launch the app
demo.launch(show_error=True, show_api=False)
|