Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ def get_response(system_message, chat_history, user_text, max_new_tokens=512):
|
|
116 |
|
117 |
# ✅ Invoke LLM Model
|
118 |
chat = prompt | hf.bind(skip_prompt=True) | StrOutputParser(output_key='content')
|
119 |
-
response =
|
120 |
response = response.split("HAL:")[-1].strip()
|
121 |
|
122 |
# ✅ Ensure English
|
|
|
116 |
|
117 |
# ✅ Invoke LLM Model
|
118 |
chat = prompt | hf.bind(skip_prompt=True) | StrOutputParser(output_key='content')
|
119 |
+
response = response.split("HAL:")[-1].strip() if "HAL:" in response else response.strip()
|
120 |
response = response.split("HAL:")[-1].strip()
|
121 |
|
122 |
# ✅ Ensure English
|