Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ def extend(input_text, num_return_sequences, max_size=20, top_k=50, top_p=0.95):
|
|
| 60 |
text = tokenizer.decode(generated_sequence, clean_up_tokenization_spaces=True)
|
| 61 |
print(text)
|
| 62 |
total_sequence = (
|
| 63 |
-
|
| 64 |
)
|
| 65 |
print(total_sequence)
|
| 66 |
|
|
|
|
| 60 |
text = tokenizer.decode(generated_sequence, clean_up_tokenization_spaces=True)
|
| 61 |
print(text)
|
| 62 |
total_sequence = (
|
| 63 |
+
text[len(tokenizer.decode(encoded_prompt[0], clean_up_tokenization_spaces=True)) :]
|
| 64 |
)
|
| 65 |
print(total_sequence)
|
| 66 |
|