DmitrMakeev commited on
Commit
ca627c6
·
1 Parent(s): 2601ee6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -18,9 +18,9 @@ def chatbot(input, api_key, history=[]):
18
  output = openai_chat(input, api_key)
19
  history.append((input, output))
20
  return history, history
21
-
22
  api_key_input = gr.inputs.Textbox(label="Ключ OpenAI API", type="password")
23
-
24
  iface = gr.Interface(
25
  fn=chatbot,
26
  inputs=["text", api_key_input, 'state'],
@@ -33,6 +33,7 @@ iface = gr.Interface(
33
  ],
34
  cache_examples=False,
35
  title="GPT-3 Модель: Text-davinci-003",
 
36
  allow_flagging="manual"
37
  )
38
 
 
18
  output = openai_chat(input, api_key)
19
  history.append((input, output))
20
  return history, history
21
+ article = "<br><br><br><br><br><br><br><br><br><br>"
22
  api_key_input = gr.inputs.Textbox(label="Ключ OpenAI API", type="password")
23
+ article = "<br><br><br><br><br><br><br><br><br><br>"
24
  iface = gr.Interface(
25
  fn=chatbot,
26
  inputs=["text", api_key_input, 'state'],
 
33
  ],
34
  cache_examples=False,
35
  title="GPT-3 Модель: Text-davinci-003",
36
+ article = article,
37
  allow_flagging="manual"
38
  )
39