migueldeguzmandev commited on
Commit
38f10fb
·
verified ·
1 Parent(s): b252d26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def generate_response(input_text, temperature):
31
 
32
  response = tokenizer.decode(output[0], skip_special_tokens=True)
33
 
34
- start_index = len(response)
35
  answer_text = response[start_index:]
36
 
37
  stopping_phrase = "Thank you for your question, Glad to be of service."
 
31
 
32
  response = tokenizer.decode(output[0], skip_special_tokens=True)
33
 
34
+ start_index = len(input_text)
35
  answer_text = response[start_index:]
36
 
37
  stopping_phrase = "Thank you for your question, Glad to be of service."