Spaces:
Running
Running
Update app.py
Browse files
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("
|
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(
|
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)
|