Rooni commited on
Commit
730b245
·
1 Parent(s): f3da532

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -45,12 +45,12 @@ with gr.Blocks(css=css, title="UI") as vui:
45
  with gr.Tab("Запрос", id='request v'):
46
  with gr.Row():
47
  with gr.Column(scale=3):
48
- promt = gr.Textbox(placeholder="Ввод текста 1", show_label=False, lines=3)
49
  with gr.Tab("Настройки", id='settingsv'):
50
  with gr.Row():
51
  with gr.Column(scale=3):
52
  with gr.Row():
53
- model = gr.Radio(show_label=True, label="Модель", interactive=True, choices=["gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-4"], value="gpt-3.5-turbo"),
54
  with gr.Row():
55
  max_tokens = gr.Slider(show_label=True, label="Максимум токенов", minimum=100, maximum=15000, value=5000, step=1)
56
  with gr.Column():
@@ -60,7 +60,5 @@ with gr.Blocks(css=css, title="UI") as vui:
60
 
61
  text_button.click(generate, inputs=[promt, model, max_tokens], outputs=text_output)
62
 
63
-
64
-
65
  #end
66
  vui.queue(api_open=False).launch()
 
45
  with gr.Tab("Запрос", id='request v'):
46
  with gr.Row():
47
  with gr.Column(scale=3):
48
+ promt = gr.Textbox(show_label=True, label="Запрос")
49
  with gr.Tab("Настройки", id='settingsv'):
50
  with gr.Row():
51
  with gr.Column(scale=3):
52
  with gr.Row():
53
+ model = gr.Radio(show_label=True, label="Модель", interactive=True, choices=["gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-4"], value="gpt-3.5-turbo")
54
  with gr.Row():
55
  max_tokens = gr.Slider(show_label=True, label="Максимум токенов", minimum=100, maximum=15000, value=5000, step=1)
56
  with gr.Column():
 
60
 
61
  text_button.click(generate, inputs=[promt, model, max_tokens], outputs=text_output)
62
 
 
 
63
  #end
64
  vui.queue(api_open=False).launch()