Nicholas Bumgarner commited on
Commit
c1298e1
·
1 Parent(s): 92af58e

Add chat debug logging

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -388,6 +388,10 @@ def phox_chat(message, history):
388
  return "Ring buffer full. Try again."
389
 
390
  pred_ids = poll_predictions()
 
 
 
 
391
  if not pred_ids:
392
  return "No prediction received (timeout). Try again."
393
 
 
388
  return "Ring buffer full. Try again."
389
 
390
  pred_ids = poll_predictions()
391
+ # Debug: log what we got
392
+ import os
393
+ with open("/tmp/chat_debug.log", "a") as f:
394
+ f.write(f"Input tokens: {token_ids}, Output tokens: {pred_ids}\n")
395
  if not pred_ids:
396
  return "No prediction received (timeout). Try again."
397