Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,10 @@ template = """Answer the question based only on the following context:
|
|
105 |
|
106 |
Question: {question}
|
107 |
|
108 |
-
|
|
|
|
|
|
|
109 |
"""
|
110 |
|
111 |
|
@@ -163,7 +166,7 @@ body::before {{
|
|
163 |
|
164 |
gr.ChatInterface(
|
165 |
predict,
|
166 |
-
chatbot=gr.Chatbot(likeable=True),
|
167 |
textbox=gr.Textbox(placeholder="stell mir Fragen", scale=7),
|
168 |
description="Ich bin Ihr hilfreicher KI-Assistent",
|
169 |
theme="soft",
|
|
|
105 |
|
106 |
Question: {question}
|
107 |
|
108 |
+
Chat History: {history}
|
109 |
+
|
110 |
+
Answer in German Language. If the question is not related to the context, answer with "I don't know".
|
111 |
+
If the user is asking for follow-up questions on the same topic, generate different questions than you already answered.
|
112 |
"""
|
113 |
|
114 |
|
|
|
166 |
|
167 |
gr.ChatInterface(
|
168 |
predict,
|
169 |
+
chatbot=gr.Chatbot(likeable=True, show_share_button=False, show_copy_button=True),
|
170 |
textbox=gr.Textbox(placeholder="stell mir Fragen", scale=7),
|
171 |
description="Ich bin Ihr hilfreicher KI-Assistent",
|
172 |
theme="soft",
|