chansung commited on
Commit
b851562
·
1 Parent(s): 98f4699

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -278,6 +278,7 @@ def add_pingpong(idx, ld, ping):
278
 
279
  prompt = tf.constant(build_prompts(ppm))
280
  max_length = tf.constant(256, dtype="int64")
 
281
 
282
  result = gpt_lm_predict_fn(
283
  prompt=prompt,
@@ -286,6 +287,7 @@ def add_pingpong(idx, ld, ping):
286
  result = result.split("### Response:")[-1].strip()
287
 
288
  ppm.add_pong(result)
 
289
  return "", ppm.build_uis(), str(res)
290
 
291
  def channel_num(btn_title):
 
278
 
279
  prompt = tf.constant(build_prompts(ppm))
280
  max_length = tf.constant(256, dtype="int64")
281
+ print(f"Prompt:\n{prompt}")
282
 
283
  result = gpt_lm_predict_fn(
284
  prompt=prompt,
 
287
  result = result.split("### Response:")[-1].strip()
288
 
289
  ppm.add_pong(result)
290
+ print(f"res:\n{str(res)}")
291
  return "", ppm.build_uis(), str(res)
292
 
293
  def channel_num(btn_title):