Spaces:
Runtime error
Runtime error
adds nltk.download
Browse files- story_gen.py +1 -1
story_gen.py
CHANGED
@@ -6,7 +6,6 @@ import printj
|
|
6 |
from transformers import pipeline # , set_seed
|
7 |
import numpy as np
|
8 |
import pandas as pd
|
9 |
-
import plotly.figure_factory as ff
|
10 |
import nltk
|
11 |
|
12 |
|
@@ -15,6 +14,7 @@ class StoryGenerator:
|
|
15 |
self.initialise_models()
|
16 |
self.stats_df = pd.DataFrame(data=[], columns=[])
|
17 |
self.stories = []
|
|
|
18 |
|
19 |
|
20 |
def initialise_models(self):
|
|
|
6 |
from transformers import pipeline # , set_seed
|
7 |
import numpy as np
|
8 |
import pandas as pd
|
|
|
9 |
import nltk
|
10 |
|
11 |
|
|
|
14 |
self.initialise_models()
|
15 |
self.stats_df = pd.DataFrame(data=[], columns=[])
|
16 |
self.stories = []
|
17 |
+
nltk.download()
|
18 |
|
19 |
|
20 |
def initialise_models(self):
|