Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def generate_story(theme):
|
|
40 |
# Function to generate an empathetic response using Llama 2
|
41 |
def generate_response(user_input):
|
42 |
# Create a prompt for the Llama 2 model to generate an empathetic response
|
43 |
-
response_prompt = f"You are a compassionate support bot. A user has shared: '{user_input}'.
|
44 |
|
45 |
# Tokenize the prompt
|
46 |
input_ids = llama_tokenizer.encode(response_prompt, return_tensors='pt')
|
|
|
40 |
# Function to generate an empathetic response using Llama 2
|
41 |
def generate_response(user_input):
|
42 |
# Create a prompt for the Llama 2 model to generate an empathetic response
|
43 |
+
response_prompt = f"You are a compassionate support bot. A user has shared: '{user_input}'. Rather than sympathy, respond with empathy, understanding, and encouragement in a supportive manner."
|
44 |
|
45 |
# Tokenize the prompt
|
46 |
input_ids = llama_tokenizer.encode(response_prompt, return_tensors='pt')
|