Rooni commited on
Commit
86c9f85
·
1 Parent(s): ba1200f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def generate(description, model, max_tokens):
34
  iface = gr.Interface(
35
  fn=generate,
36
  inputs=[
37
- gr.Textbox(label="Запрос", placeholder="Введите текст...", state="active" if gr.inputs.Textbox().data != "" else "disabled"),
38
  gr.Radio(show_label=True, label="Модель", interactive=True, choices=["gpt-3.5-turbo", "gpt-3.5-turbo-16k"], value="gpt-3.5-turbo"),
39
  gr.Slider(show_label=True, label="Максимум токенов", minimum=100, maximum=15000, value=10000, step=1)
40
  ],
 
34
  iface = gr.Interface(
35
  fn=generate,
36
  inputs=[
37
+ gr.Textbox(label="Запрос", placeholder="Введите текст...", state="active" if gr.Textbox().data != "" else "disabled"),
38
  gr.Radio(show_label=True, label="Модель", interactive=True, choices=["gpt-3.5-turbo", "gpt-3.5-turbo-16k"], value="gpt-3.5-turbo"),
39
  gr.Slider(show_label=True, label="Максимум токенов", minimum=100, maximum=15000, value=10000, step=1)
40
  ],