Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -46,11 +46,12 @@ css_url = "https://aihubyufi-aihub.static.hf.space/style.css"
|
|
46 |
|
47 |
# Получение CSS по ссылке
|
48 |
response = requests.get(css_url)
|
49 |
-
css = response.text
|
50 |
|
51 |
|
52 |
# ui
|
53 |
with gr.Blocks(css=css, title="Переводчик") as vui:
|
|
|
54 |
with gr.Row():
|
55 |
with gr.Column():
|
56 |
text = gr.Textbox(label="Текст", type="text", lines=3)
|
|
|
46 |
|
47 |
# Получение CSS по ссылке
|
48 |
response = requests.get(css_url)
|
49 |
+
css = response.text + ".gradio-container{max-width: 700px !important} h1{text-align:center}"
|
50 |
|
51 |
|
52 |
# ui
|
53 |
with gr.Blocks(css=css, title="Переводчик") as vui:
|
54 |
+
gr.Markdown("# Переводчик")
|
55 |
with gr.Row():
|
56 |
with gr.Column():
|
57 |
text = gr.Textbox(label="Текст", type="text", lines=3)
|