Update app.py
Browse files
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(
|
| 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."
|