Spaces:
Runtime error
Runtime error
michailroussos
commited on
Commit
·
8891495
1
Parent(s):
37be440
more
Browse files
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
|