Rooni commited on
Commit
3cba650
1 Parent(s): 0ac1dab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -3,6 +3,10 @@ import requests
3
  import os
4
  import time
5
 
 
 
 
 
6
  def translate_text(text, target_language):
7
  try:
8
  api_key = os.getenv("API_KEY")
@@ -47,7 +51,7 @@ iface = gr.Interface(
47
  gr.Dropdown(languages, value="Английский", label="Выберите язык для перевода")
48
  ],
49
  outputs=gr.Textbox(label="Переведенный текст"),
50
- title="Переводчик"
51
  )
52
 
53
  iface.launch()
 
3
  import os
4
  import time
5
 
6
+ css = """
7
+ footer {visibility: hidden !important;}
8
+ """
9
+
10
  def translate_text(text, target_language):
11
  try:
12
  api_key = os.getenv("API_KEY")
 
51
  gr.Dropdown(languages, value="Английский", label="Выберите язык для перевода")
52
  ],
53
  outputs=gr.Textbox(label="Переведенный текст"),
54
+ title="Переводчик", css=css
55
  )
56
 
57
  iface.launch()