michailroussos commited on
Commit
8891495
·
1 Parent(s): 37be440
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -51,6 +51,7 @@ def respond(message, max_new_tokens, temperature, system_message="You are a help
51
 
52
  # Decode the generated tokens back to text
53
  generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
 
54
 
55
  # Clean up the response by removing unwanted parts (e.g., system and user info)
56
  cleaned_response = generated_text.split("\n")[-1] # Assuming the response ends at the last line
 
51
 
52
  # Decode the generated tokens back to text
53
  generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
54
+ print("[DEBUG] Generated Text:", generated_text)
55
 
56
  # Clean up the response by removing unwanted parts (e.g., system and user info)
57
  cleaned_response = generated_text.split("\n")[-1] # Assuming the response ends at the last line