Балаганский Никита Николаевич
commited on
Commit
•
1a2cd56
1
Parent(s):
cb16bf9
fix
Browse files- generator.py +2 -2
generator.py
CHANGED
@@ -54,7 +54,7 @@ class Generator:
|
|
54 |
input_prompt,
|
55 |
num_samples,
|
56 |
)
|
57 |
-
|
58 |
for i in range(max_length):
|
59 |
is_caif_step = (
|
60 |
i % caif_period == 0 and self.caif_sampler is not None
|
@@ -70,7 +70,7 @@ class Generator:
|
|
70 |
progress_bar.progress((i+1)/max_length)
|
71 |
if ended_sequences.all():
|
72 |
break
|
73 |
-
|
74 |
|
75 |
return (
|
76 |
[
|
|
|
54 |
input_prompt,
|
55 |
num_samples,
|
56 |
)
|
57 |
+
text = st.text()
|
58 |
for i in range(max_length):
|
59 |
is_caif_step = (
|
60 |
i % caif_period == 0 and self.caif_sampler is not None
|
|
|
70 |
progress_bar.progress((i+1)/max_length)
|
71 |
if ended_sequences.all():
|
72 |
break
|
73 |
+
text.text(self.tokenizer.decode(input_ids[0]))
|
74 |
|
75 |
return (
|
76 |
[
|