File size: 641 Bytes
0c9a17b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
33
34
import gradio as gr

css = """
html, body, #root {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
* {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
img, svg, canvas, iframe {
    max-width: 100% !important;
    height: auto !important;
}
@media (max-width: 768px) {
    html {
        font-size: 14px !important;
    }
    button, input, select, textarea {
        font-size: 14px !important;
    }
}
"""

with gr.Blocks(css=css) as demo:
    # Your UI here
    pass

demo.launch()