Spaces:
Running
Running
Update src/generation/llm.py
Browse files- src/generation/llm.py +1 -1
src/generation/llm.py
CHANGED
@@ -100,7 +100,7 @@ class LLM:
|
|
100 |
# Decode the generated tokens
|
101 |
response = self.tokenizer.decode(outputs[0], skip_special_tokens=True)
|
102 |
response = response.strip()
|
103 |
-
keyword = "
|
104 |
index = response.find(keyword)
|
105 |
output = response[index + len(keyword):].strip() if index != -1 else response
|
106 |
print("Response generated successfully!")
|
|
|
100 |
# Decode the generated tokens
|
101 |
response = self.tokenizer.decode(outputs[0], skip_special_tokens=True)
|
102 |
response = response.strip()
|
103 |
+
keyword = "Truy vấn:"
|
104 |
index = response.find(keyword)
|
105 |
output = response[index + len(keyword):].strip() if index != -1 else response
|
106 |
print("Response generated successfully!")
|