Spaces:
Paused
Paused
Update story_beam_search/beam_search.py
Browse files
story_beam_search/beam_search.py
CHANGED
@@ -93,7 +93,7 @@ class BeamSearchGenerator:
|
|
93 |
top_k=self.config.top_k,
|
94 |
top_p=self.config.top_p,
|
95 |
do_sample=True,
|
96 |
-
)
|
97 |
|
98 |
stories = []
|
99 |
for output in outputs:
|
|
|
93 |
top_k=self.config.top_k,
|
94 |
top_p=self.config.top_p,
|
95 |
do_sample=True,
|
96 |
+
).to(self.device)
|
97 |
|
98 |
stories = []
|
99 |
for output in outputs:
|