FredZhang7 commited on
Commit
7f06e10
1 Parent(s): b3567f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -106,6 +106,7 @@ def respond(history=None):
106
  top_p,
107
  presence_penalty,
108
  count_penalty,
 
109
  ):
110
  history[-1][1] += character
111
  yield history
@@ -119,6 +120,7 @@ def generator(
119
  top_p=0.5,
120
  presencePenalty=0.5,
121
  countPenalty=0.5,
 
122
  ):
123
  args = PIPELINE_ARGS(
124
  temperature=max(0.2, float(temperature)),
 
106
  top_p,
107
  presence_penalty,
108
  count_penalty,
109
+ history
110
  ):
111
  history[-1][1] += character
112
  yield history
 
120
  top_p=0.5,
121
  presencePenalty=0.5,
122
  countPenalty=0.5,
123
+ history=None
124
  ):
125
  args = PIPELINE_ARGS(
126
  temperature=max(0.2, float(temperature)),