Rooni commited on
Commit
6e788b5
·
1 Parent(s): 09dff9f

Update app.py

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