Rooni commited on
Commit
606708e
·
1 Parent(s): 0d9ea19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,9 +27,9 @@ def generate(description, model, max_tokens):
27
  else:
28
  return f'Не удалось сгенерировать текст. {data}'
29
 
30
- iface = gr.Interface(fn=generate, inputs=[
31
  gr.Textbox(label="Запрос"),
32
  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"),
33
  gr.Slider(show_label=True, label="Максимум токенов", minimum=100, maximum=15000, value=10000, step=1)
34
  ], outputs=gr.Textbox(label="Ответ"), title="EasyGPT")
35
- iface.launch(share=True)
 
27
  else:
28
  return f'Не удалось сгенерировать текст. {data}'
29
 
30
+ iface = gr.Interface(fn=generate, share=True, inputs=[
31
  gr.Textbox(label="Запрос"),
32
  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"),
33
  gr.Slider(show_label=True, label="Максимум токенов", minimum=100, maximum=15000, value=10000, step=1)
34
  ], outputs=gr.Textbox(label="Ответ"), title="EasyGPT")
35
+ iface.launch()