johann22 commited on
Commit
8506da9
·
1 Parent(s): 36aba4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -58,7 +58,7 @@ def run_gpt(
58
  repetition_penalty=1.0,
59
  do_sample=True,
60
  seed=seed,
61
- )
62
 
63
 
64
  content = PREFIX.format(
@@ -75,7 +75,6 @@ def run_gpt(
75
  resp = ""
76
  for response in stream:
77
  resp += response.token.text
78
- yield resp
79
  '''
80
  resp = openai.ChatCompletion.create(
81
  model=MODEL,
 
58
  repetition_penalty=1.0,
59
  do_sample=True,
60
  seed=seed,
61
+ ).strip("\n")
62
 
63
 
64
  content = PREFIX.format(
 
75
  resp = ""
76
  for response in stream:
77
  resp += response.token.text
 
78
  '''
79
  resp = openai.ChatCompletion.create(
80
  model=MODEL,