Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ User: {question}
|
|
| 17 |
Assistant:"""
|
| 18 |
prompt = PromptTemplate(template=prompt_template, input_variables=["question"])
|
| 19 |
chain = LLMChain(llm=llm, prompt=prompt)
|
| 20 |
-
def chatbot(question):
|
| 21 |
response = chain.run(question)
|
| 22 |
return response
|
| 23 |
demo = gr.ChatInterface(
|
|
|
|
| 17 |
Assistant:"""
|
| 18 |
prompt = PromptTemplate(template=prompt_template, input_variables=["question"])
|
| 19 |
chain = LLMChain(llm=llm, prompt=prompt)
|
| 20 |
+
def chatbot(question,chat_history):
|
| 21 |
response = chain.run(question)
|
| 22 |
return response
|
| 23 |
demo = gr.ChatInterface(
|