Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,22 +16,23 @@ footer {visibility: hidden !important;}
|
|
| 16 |
# ui
|
| 17 |
with gr.Blocks(css=css) as vui:
|
| 18 |
with gr.Tabs() as tabs:
|
| 19 |
-
with gr.
|
| 20 |
-
with gr.
|
| 21 |
-
with gr.
|
| 22 |
-
with gr.
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
with gr.
|
| 26 |
-
with gr.
|
| 27 |
-
with gr.
|
| 28 |
-
with gr.
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
|
|
|
| 35 |
vkl2_text_button.click(test, inputs=[num, enter_one], outputs=vkl2_text_output)
|
| 36 |
|
| 37 |
|
|
|
|
| 16 |
# ui
|
| 17 |
with gr.Blocks(css=css) as vui:
|
| 18 |
with gr.Tabs() as tabs:
|
| 19 |
+
with gr.Row():
|
| 20 |
+
with gr.Column(scale=3):
|
| 21 |
+
with gr.Tab("Вкладка 1", id='vkl1'):
|
| 22 |
+
with gr.Row():
|
| 23 |
+
with gr.Column(scale=3):
|
| 24 |
+
enter_one = gr.Textbox(placeholder="Ввод текста 1", show_label=False, lines=3)
|
| 25 |
+
with gr.Tab("Вкладка 2", id='vkl2'):
|
| 26 |
+
with gr.Row():
|
| 27 |
+
with gr.Column(scale=3):
|
| 28 |
+
with gr.Row():
|
| 29 |
+
with gr.Accordion(label="Выпадающий список", open=False):
|
| 30 |
+
num = gr.Radio(interactive=True, value="1", show_label=False, choices=["1", "2"])
|
| 31 |
+
with gr.Column():
|
| 32 |
+
vkl2_text_button = gr.Button("Генерация", variant='primary', elem_id="generate")
|
| 33 |
+
with gr.Column(scale=2):
|
| 34 |
+
vkl2_text_output = gr.Textbox()
|
| 35 |
+
|
| 36 |
vkl2_text_button.click(test, inputs=[num, enter_one], outputs=vkl2_text_output)
|
| 37 |
|
| 38 |
|