chatbot-arena-leaderboard / app_iframe.py
LLMArena's picture
Update app_iframe.py
f6a522c verified
raw
history blame contribute delete
754 Bytes
import gradio as gr
# CSS для скрытия footer и максимизации размера
custom_css = """
footer {
display: none !important;
}
.gradio-container {
max-width: 100% !important;
padding: 0 !important;
margin: 0 !important;
}
.container {
max-width: 100% !important;
padding: 0 !important;
margin: 0 !important;
}
iframe {
width: 100vw !important;
height: 100vh !important;
position: fixed !important;
top: 0 !important;
left: 0 !important;
}
"""
html_content = """
<iframe
src="https://llmarena.ru/?leaderboard"
style="width: 100vw; height: 100vh; border: none;"
></iframe>
"""
with gr.Blocks(css=custom_css) as demo:
gr.HTML(html_content)
demo.launch(show_api=False)