Wootang01 commited on
Commit
9e0bc97
·
1 Parent(s): 08e5ea6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,8 +4,8 @@ import gradio as gr
4
 
5
  openai.api_key ="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"
6
 
7
- start_sequence = "\nAI:"
8
- restart_sequence = "\nHuman: "
9
 
10
  def predict(input, history=[]):
11
 
@@ -19,7 +19,7 @@ def predict(input, history=[]):
19
  top_p=1,
20
  frequency_penalty=0,
21
  presence_penalty=0.6,
22
- stop=[" Human:", " AI:"])
23
  # tokenize the new input sentence
24
  response2 = response["choices"][0]["text"]
25
  history.append((input, response2))
 
4
 
5
  openai.api_key ="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"
6
 
7
+ #start_sequence = "\nAI:"
8
+ #restart_sequence = "\nHuman: "
9
 
10
  def predict(input, history=[]):
11
 
 
19
  top_p=1,
20
  frequency_penalty=0,
21
  presence_penalty=0.6,
22
+ #stop=[" Human:", " AI:"])
23
  # tokenize the new input sentence
24
  response2 = response["choices"][0]["text"]
25
  history.append((input, response2))