Spaces:
Build error
Build error
bankholdup
commited on
Commit
•
6d2bb2a
1
Parent(s):
5306456
Update app.py
Browse files
app.py
CHANGED
@@ -48,11 +48,13 @@ if st.button("Поехали", help="Может занять какое-то в
|
|
48 |
generated_sequence = generated_sequence.tolist()
|
49 |
text = tokenizer.decode(generated_sequence, clean_up_tokenization_spaces=True)
|
50 |
|
51 |
-
text = text[: text.find("/n") if "/n" else None]
|
52 |
|
53 |
total_sequence = (
|
54 |
prompt_text + text[len(tokenizer.decode(encoded_prompt[0], clean_up_tokenization_spaces=True)) :]
|
55 |
)
|
|
|
|
|
56 |
|
57 |
#generated_sequences.append(total_sequence)
|
58 |
st.write(total_sequence)
|
|
|
48 |
generated_sequence = generated_sequence.tolist()
|
49 |
text = tokenizer.decode(generated_sequence, clean_up_tokenization_spaces=True)
|
50 |
|
51 |
+
#text = text[: text.find("/n") if "/n" else None]
|
52 |
|
53 |
total_sequence = (
|
54 |
prompt_text + text[len(tokenizer.decode(encoded_prompt[0], clean_up_tokenization_spaces=True)) :]
|
55 |
)
|
56 |
+
|
57 |
+
|
58 |
|
59 |
#generated_sequences.append(total_sequence)
|
60 |
st.write(total_sequence)
|