Update app.py
Browse files
app.py
CHANGED
|
@@ -111,7 +111,7 @@ model_kwargs = {"max_length": max_length, "pad_token_id": 50256, "pad_token": "[
|
|
| 111 |
llm = ChatOpenAI(streaming=True, model_name=model_name, temperature=0.9)
|
| 112 |
prompt_template = """You are going to
|
| 113 |
receive a context with information about a spanish writer and his sets of novels.
|
| 114 |
-
You can only answer things based on the question and a context to answer it.
|
| 115 |
Context: {context}
|
| 116 |
Question: {question}"""
|
| 117 |
#Memory: {chat_history}"""
|
|
|
|
| 111 |
llm = ChatOpenAI(streaming=True, model_name=model_name, temperature=0.9)
|
| 112 |
prompt_template = """You are going to
|
| 113 |
receive a context with information about a spanish writer and his sets of novels.
|
| 114 |
+
You can only answer things based on the question and a context to answer it. You have to answer in the same language you are being asked.
|
| 115 |
Context: {context}
|
| 116 |
Question: {question}"""
|
| 117 |
#Memory: {chat_history}"""
|