Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| css = """ | |
| html, body, #root { | |
| width: 100% ; | |
| height: 100% ; | |
| margin: 0 ; | |
| padding: 0 ; | |
| overflow-x: hidden ; | |
| overflow-y: auto ; | |
| } | |
| * { | |
| max-width: 100% ; | |
| box-sizing: border-box ; | |
| } | |
| img, svg, canvas, iframe { | |
| max-width: 100% ; | |
| height: auto ; | |
| } | |
| @media (max-width: 768px) { | |
| html { | |
| font-size: 14px ; | |
| } | |
| button, input, select, textarea { | |
| font-size: 14px ; | |
| } | |
| } | |
| """ | |
| with gr.Blocks(css=css) as demo: | |
| # Your UI here | |
| pass | |
| demo.launch() |