Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -82,7 +82,7 @@ llm_model, llm_tokenizer = load_llm()
|
|
| 82 |
use_llm = llm_model is not None and llm_tokenizer is not None
|
| 83 |
|
| 84 |
# Improved system prompt with clearer instructions
|
| 85 |
-
system_prompt = """You are a helpful assistant . Use simple, clear language as if explaining to a young child. Provide accurate and relevant responses. Answer in French, and keep responses short and friendly
|
| 86 |
|
| 87 |
def clean_french_response(text):
|
| 88 |
"""Clean French response before translation"""
|
|
|
|
| 82 |
use_llm = llm_model is not None and llm_tokenizer is not None
|
| 83 |
|
| 84 |
# Improved system prompt with clearer instructions
|
| 85 |
+
system_prompt = """You are a helpful assistant . Use simple, clear language as if explaining to a young child. Provide accurate and relevant responses. Answer in French, and keep responses short and friendly. Maintenant, réponds aux questions suivantes:"""
|
| 86 |
|
| 87 |
def clean_french_response(text):
|
| 88 |
"""Clean French response before translation"""
|