Spaces:
Runtime error
Runtime error
Commit
·
09e2691
1
Parent(s):
535b7be
Update app.py
Browse files
app.py
CHANGED
@@ -85,12 +85,12 @@ def generateresponse(history):#, task):
|
|
85 |
)
|
86 |
output = []
|
87 |
for s in generation_output.sequences:
|
88 |
-
|
89 |
print(tokenizer.decode(s))
|
90 |
|
91 |
-
|
92 |
|
93 |
-
response = f"Response: {
|
94 |
history[-1][1] = response
|
95 |
print(history)
|
96 |
return history
|
|
|
85 |
)
|
86 |
output = []
|
87 |
for s in generation_output.sequences:
|
88 |
+
output.append(tokenizer.decode(s))
|
89 |
print(tokenizer.decode(s))
|
90 |
|
91 |
+
outputs = (output[0].split('### Response:'))[1]
|
92 |
|
93 |
+
response = f"Response: {outputs}"
|
94 |
history[-1][1] = response
|
95 |
print(history)
|
96 |
return history
|