Bey007 commited on
Commit
6eeeee0
·
verified ·
1 Parent(s): 47d9e7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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}'. 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')
 
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')