Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -19,9 +19,9 @@ from langchain_groq import ChatGroq
|
|
19 |
# conversation = ConversationChain(llm=llm, memory=memory)
|
20 |
|
21 |
# Function to generate responses
|
22 |
-
def generate_response(user_input):
|
23 |
# response = conversation.run(user_input)
|
24 |
-
return user_input
|
25 |
|
26 |
# Define additional inputs and examples if needed
|
27 |
additional_inputs = [
|
|
|
19 |
# conversation = ConversationChain(llm=llm, memory=memory)
|
20 |
|
21 |
# Function to generate responses
|
22 |
+
def generate_response(user_input, history, locale, model, temperature, max_tokens, top_p, seed):
|
23 |
# response = conversation.run(user_input)
|
24 |
+
return user_input + ", " + history
|
25 |
|
26 |
# Define additional inputs and examples if needed
|
27 |
additional_inputs = [
|