Rooni commited on
Commit
a588cac
·
1 Parent(s): 5baee2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,7 +49,7 @@ css = """
49
 
50
  with gr.Blocks(css=css) as demo:
51
  with gr.Tabs() as tabs:
52
- with gr.Tab("Переводчик", id='t'):
53
  with gr.Row():
54
  with gr.Column(scale=6, min_width=600):
55
  text = gr.Textbox(label="Введите текст"),
@@ -60,5 +60,5 @@ with gr.Blocks(css=css) as demo:
60
  with gr.Column(scale=2):
61
  text_output = gr.Textbox(label="Переведенный текст")
62
 
63
- text_button.click(Переводчик, inputs=[text, target_language], outputs=text_output)
64
  demo.queue(concurrency_count=64, max_size=80, api_open=False).launch(max_threads=256)
 
49
 
50
  with gr.Blocks(css=css) as demo:
51
  with gr.Tabs() as tabs:
52
+ with gr.Tab("translate", id='t'):
53
  with gr.Row():
54
  with gr.Column(scale=6, min_width=600):
55
  text = gr.Textbox(label="Введите текст"),
 
60
  with gr.Column(scale=2):
61
  text_output = gr.Textbox(label="Переведенный текст")
62
 
63
+ text_button.click(translate, inputs=[text, target_language], outputs=text_output)
64
  demo.queue(concurrency_count=64, max_size=80, api_open=False).launch(max_threads=256)