Spaces:
Runtime error
Runtime error
michailroussos
commited on
Commit
·
0acf62f
1
Parent(s):
712cf96
more
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def respond(message, max_new_tokens, temperature, system_message="You are a help
|
|
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")[
|
58 |
|
59 |
# Debug: Show the cleaned response
|
60 |
print("[DEBUG] Cleaned Response:", cleaned_response)
|
|
|
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 = "".join(generated_text.split("\n")[9:]) # Assuming the response ends at the last line
|
58 |
|
59 |
# Debug: Show the cleaned response
|
60 |
print("[DEBUG] Cleaned Response:", cleaned_response)
|