muhtasham commited on
Commit
0aac03a
1 Parent(s): 4749f59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -105,7 +105,10 @@ template = """Answer the question based only on the following context:
105
 
106
  Question: {question}
107
 
108
- Answer in German Language. If the question is not related to the context, answer with "I don't know".
 
 
 
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",