chansung commited on
Commit
7476491
·
1 Parent(s): 82088a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -243,7 +243,7 @@ examples = [
243
  ]
244
  ex_btns = []
245
 
246
- def build_prompts(ppmanager, win_size=3):
247
  dummy_ppm = copy.deepcopy(ppmanager)
248
 
249
  dummy_ppm.ctx = """Below are a series of dialogues between human and an AI assistant.
@@ -253,7 +253,7 @@ The assistant MUST be happy to help with almost anything, and will do its best t
253
  It also MUST avoid giving false or misleading information, and it caveats when it isn’t entirely sure about the right answer.
254
  That said, the assistant is practical and really does its best, and doesn’t let caution get too much in the way of being useful.
255
  """
256
- return CtxLastWindowStrategy(win_size)(dummy_ppm)
257
 
258
  def add_pingpong(idx, ld, ping):
259
  res = [
 
243
  ]
244
  ex_btns = []
245
 
246
+ def build_prompts(ppmanager):
247
  dummy_ppm = copy.deepcopy(ppmanager)
248
 
249
  dummy_ppm.ctx = """Below are a series of dialogues between human and an AI assistant.
 
253
  It also MUST avoid giving false or misleading information, and it caveats when it isn’t entirely sure about the right answer.
254
  That said, the assistant is practical and really does its best, and doesn’t let caution get too much in the way of being useful.
255
  """
256
+ return CtxLastWindowStrategy(3)(dummy_ppm)
257
 
258
  def add_pingpong(idx, ld, ping):
259
  res = [