Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -137,7 +137,7 @@ def get_conversational_rag_chain(retriever_chain):
|
|
137 |
llm = load_quantized_model(model_name)
|
138 |
|
139 |
prompt = ChatPromptTemplate.from_messages([
|
140 |
-
("system", "
|
141 |
MessagesPlaceholder(variable_name="chat_history"),
|
142 |
("user", "{input}"),
|
143 |
])
|
@@ -204,7 +204,7 @@ app = gr.Interface(
|
|
204 |
inputs=["text"],
|
205 |
outputs="text",
|
206 |
title="Chat with Websites",
|
207 |
-
description="
|
208 |
#allow_flagging=False
|
209 |
)
|
210 |
|
|
|
137 |
llm = load_quantized_model(model_name)
|
138 |
|
139 |
prompt = ChatPromptTemplate.from_messages([
|
140 |
+
("system", "Du bist ein freundlicher Mitarbeiter einens Call Center und beantwortest basierend auf dem Context. Benutze nur den Inhalt des Context. Antworte mit: Ich bin mir nicht sicher. Wenn die Antwort nicht aus dem Context hervorgeht. Antworte auf Deutsch, bitte? CONTEXT:\n\n{context}"),
|
141 |
MessagesPlaceholder(variable_name="chat_history"),
|
142 |
("user", "{input}"),
|
143 |
])
|
|
|
204 |
inputs=["text"],
|
205 |
outputs="text",
|
206 |
title="Chat with Websites",
|
207 |
+
description="TSchreibe hier deine FRage rein...",
|
208 |
#allow_flagging=False
|
209 |
)
|
210 |
|