File size: 722 Bytes
99beabd
 
 
d0ee9df
99beabd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
# app.py
import gradio as gr

TARGET = "https://comparia.beta.gouv.fr/ranking"

with gr.Blocks(css="""
html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}
#root, .gradio-container {
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
    max-width: 100% !important;
}
.embed {
    height: 100vh !important;
    width: 100vw !important;
    border: none !important;
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
}
""") as demo:
    gr.HTML(f'<iframe class="embed" src="{TARGET}" referrerpolicy="no-referrer" loading="lazy"></iframe>')

demo.launch()