Spaces:
Sleeping

byte-vortex commited on
Commit
2226690
·
verified ·
1 Parent(s): 5b53e04

Deploy Myco from CI

Browse files
Files changed (1) hide show
  1. game/engine.py +11 -4
game/engine.py CHANGED
@@ -299,11 +299,18 @@ def _local_pipeline_answer(message, current, context):
299
  messages = _build_messages(message, current, context)
300
  try:
301
  outputs = pipe(
302
- messages,
303
- max_new_tokens=90,
304
- temperature=0.8,
305
- do_sample=True,
306
  )
 
 
 
 
 
 
 
307
  # The pipeline returns the full generated_text list; the last entry is
308
  # the new assistant turn added by the model.
309
  last = outputs[0]["generated_text"][-1]
 
299
  messages = _build_messages(message, current, context)
300
  try:
301
  outputs = pipe(
302
+ messages,
303
+ max_new_tokens=90,
304
+ temperature=0.8,
305
+ do_sample=True,
306
  )
307
+
308
+ print("========== MYCO OUTPUT ==========")
309
+ print(outputs)
310
+ print("=================================")
311
+
312
+ last = outputs[0]["generated_text"][-1]
313
+
314
  # The pipeline returns the full generated_text list; the last entry is
315
  # the new assistant turn added by the model.
316
  last = outputs[0]["generated_text"][-1]