Rooni commited on
Commit
15697bc
·
1 Parent(s): e82b78d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -55,12 +55,13 @@ with gr.Blocks(css=css) as vui:
55
  with gr.Row():
56
  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")
57
  with gr.Row():
58
- max_tokens = gr.Slider(show_label=True, label="Максимальное количество токенов", minimum=100, maximum=15000, value=5000, step=1)
59
  with gr.Column():
60
  text_button = gr.Button("Генерация", variant='primary', elem_id="generate")
61
  with gr.Column(scale=2):
62
  with gr.Tab("Ответ"):
63
  text_output = gr.Markdown(show_label=False, value="**Здравствуйте!** Чем я могу Вам помочь сегодня?")
 
64
 
65
  text_button.click(generate, inputs=[promt, model, max_tokens], outputs=text_output)
66
 
 
55
  with gr.Row():
56
  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")
57
  with gr.Row():
58
+ max_tokens = gr.Slider(show_label=True, label="Максимальное количество токенов", minimum=100, maximum=8000, value=4000, step=1)
59
  with gr.Column():
60
  text_button = gr.Button("Генерация", variant='primary', elem_id="generate")
61
  with gr.Column(scale=2):
62
  with gr.Tab("Ответ"):
63
  text_output = gr.Markdown(show_label=False, value="**Здравствуйте!** Чем я могу Вам помочь сегодня?")
64
+ gr.Acc
65
 
66
  text_button.click(generate, inputs=[promt, model, max_tokens], outputs=text_output)
67