vpcom commited on
Commit
9ffbb95
·
1 Parent(s): 21645ef

fix: the history is fixed now

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -180,7 +180,7 @@ additional_inputs=[
180
  gr.Textbox("", label="Optional system prompt"), #<|endoftext|>
181
  gr.Slider(
182
  label="Temperature",
183
- value=0.99,
184
  minimum=0.0,
185
  maximum=1.0,
186
  step=0.05,
@@ -198,7 +198,7 @@ additional_inputs=[
198
  ),
199
  gr.Slider(
200
  label="Top-p (nucleus sampling)",
201
- value=0.4,
202
  minimum=0.0,
203
  maximum=1,
204
  step=0.05,
@@ -275,7 +275,9 @@ class ChatInterface(gr.ChatInterface):
275
  self.fn, *inputs, limiter=self.limiter
276
  )
277
 
278
- history.append([message+response])
 
 
279
  return history, history
280
 
281
  chat_interface = ChatInterface(
 
180
  gr.Textbox("", label="Optional system prompt"), #<|endoftext|>
181
  gr.Slider(
182
  label="Temperature",
183
+ value=0.9,
184
  minimum=0.0,
185
  maximum=1.0,
186
  step=0.05,
 
198
  ),
199
  gr.Slider(
200
  label="Top-p (nucleus sampling)",
201
+ value=0.6,
202
  minimum=0.0,
203
  maximum=1,
204
  step=0.05,
 
275
  self.fn, *inputs, limiter=self.limiter
276
  )
277
 
278
+ #history.append([message,response])
279
+ # always forget the history
280
+ history = [[message,response]]
281
  return history, history
282
 
283
  chat_interface = ChatInterface(