Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ history = []
|
|
| 18 |
simple_history = []
|
| 19 |
|
| 20 |
def chat(user_input):
|
| 21 |
-
bot_response = get_output(generator, user_input)[0][
|
| 22 |
|
| 23 |
history.append({
|
| 24 |
"role": "user",
|
|
|
|
| 18 |
simple_history = []
|
| 19 |
|
| 20 |
def chat(user_input):
|
| 21 |
+
bot_response = get_output(generator, user_input)[0][len(user_input):]
|
| 22 |
|
| 23 |
history.append({
|
| 24 |
"role": "user",
|