Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -62,11 +62,8 @@ def extend(input_text, num_return_sequences, max_size=20, top_k=50, top_p=0.95):
|
|
62 |
total_sequence = (
|
63 |
text[len(tokenizer.decode(encoded_prompt[0], clean_up_tokenization_spaces=True)) :]
|
64 |
)
|
65 |
-
|
66 |
-
|
67 |
-
#generated_sequences.append(total_sequence)
|
68 |
-
generated_sequences.append(text)
|
69 |
-
st.write(text)
|
70 |
|
71 |
parsed_text = total_sequence.replace("<|startoftext|>", "").replace("\r","").replace("\n\n", "\n")
|
72 |
if len(parsed_text) == 0:
|
|
|
62 |
total_sequence = (
|
63 |
text[len(tokenizer.decode(encoded_prompt[0], clean_up_tokenization_spaces=True)) :]
|
64 |
)
|
65 |
+
generated_sequences.append(total_sequence)
|
66 |
+
st.write(total_sequence)
|
|
|
|
|
|
|
67 |
|
68 |
parsed_text = total_sequence.replace("<|startoftext|>", "").replace("\r","").replace("\n\n", "\n")
|
69 |
if len(parsed_text) == 0:
|