chansung commited on
Commit
bd9d686
·
1 Parent(s): e290e51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -243,7 +243,7 @@ examples = [
243
  ]
244
  ex_btns = []
245
 
246
- def build_prompts(ppmanager, user_message, win_size=3):
247
  global_context = """Below are a series of dialogues between human and an AI assistant.
248
  Each turn of conversation is distinguished by the delimiter of "-----"
249
  The AI MUST be helpful, polite, honest, sophisticated, emotionally aware, and humble-but-knowledgeable.
@@ -267,6 +267,9 @@ def add_pingpong(idx, ld, ping):
267
  ]
268
 
269
  ppm = res[idx]
 
 
 
270
  prompt = build_prompts(ppm, ping)
271
  print(prompt)
272
 
 
243
  ]
244
  ex_btns = []
245
 
246
+ def build_prompts(ppmanager, win_size=3):
247
  global_context = """Below are a series of dialogues between human and an AI assistant.
248
  Each turn of conversation is distinguished by the delimiter of "-----"
249
  The AI MUST be helpful, polite, honest, sophisticated, emotionally aware, and humble-but-knowledgeable.
 
267
  ]
268
 
269
  ppm = res[idx]
270
+ ppm.add_pingpong(
271
+ PingPong(ping, "")
272
+ )
273
  prompt = build_prompts(ppm, ping)
274
  print(prompt)
275