Rooni commited on
Commit
8159335
·
verified ·
1 Parent(s): 47550fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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)