Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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 |
],
|