Rooni commited on
Commit
e40fd86
·
1 Parent(s): c87fcec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -14
app.py CHANGED
@@ -46,21 +46,22 @@ footer {visibility: hidden !important;}
46
  # ui
47
  with gr.Blocks(css=css) as vui:
48
  with gr.Tabs() as tabs:
49
- with gr.Tab("Запрос", id='request v'):
50
- with gr.Row():
51
- with gr.Column(scale=3):
52
- promt = gr.Textbox(show_label=True, label="Запрос", lines=3)
53
- with gr.Tab("Настройки", id='settingsv'):
54
- with gr.Row():
55
- with gr.Column(scale=3):
56
- with gr.Row():
57
- model = gr.Radio(show_label=True, label="Модель", interactive=True, choices=["gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-16k-0613", "gpt-4"], value="gpt-4")
58
- with gr.Row():
59
- max_tokens = gr.Slider(show_label=True, label="Максимальное количество токенов", minimum=100, maximum=15000, value=5000, step=1)
60
  with gr.Column():
61
- text_button = gr.Button("Генерация", variant='primary', elem_id="generate")
62
- with gr.Column(scale=2):
63
- text_output = gr.Textbox(show_label=False, placeholder="Здравствуйте! Чем я могу Вам помочь сегодня?")
 
 
 
 
 
 
 
 
 
 
 
 
64
 
65
  text_button.click(generate, inputs=[promt, model, max_tokens], outputs=text_output)
66
 
 
46
  # ui
47
  with gr.Blocks(css=css) as vui:
48
  with gr.Tabs() as tabs:
 
 
 
 
 
 
 
 
 
 
 
49
  with gr.Column():
50
+ with gr.Tab("Запрос", id='request v'):
51
+ with gr.Row():
52
+ with gr.Column(scale=3):
53
+ promt = gr.Textbox(show_label=True, label="Запрос", lines=3)
54
+ with gr.Tab("Настройки", id='settingsv'):
55
+ with gr.Row():
56
+ with gr.Column(scale=3):
57
+ with gr.Row():
58
+ model = gr.Radio(show_label=True, label="Модель", interactive=True, choices=["gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-16k-0613", "gpt-4"], value="gpt-4")
59
+ with gr.Row():
60
+ max_tokens = gr.Slider(show_label=True, label="Максимальное количество токенов", minimum=100, maximum=15000, value=5000, step=1)
61
+ with gr.Column():
62
+ text_button = gr.Button("Генерация", variant='primary', elem_id="generate")
63
+ with gr.Column(scale=2):
64
+ text_output = gr.Textbox(show_label=False, placeholder="Здравствуйте! Чем я могу Вам помочь сегодня?")
65
 
66
  text_button.click(generate, inputs=[promt, model, max_tokens], outputs=text_output)
67