Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ fastbook.setup_book()
|
|
10 |
learn = load_learner('export.pkl')
|
11 |
|
12 |
def reviews_generator(text,n_words):
|
13 |
-
preds =
|
14 |
return outputs
|
15 |
|
16 |
examples = [["The beauty of this books", "45"], ["I didn't like this book because", "30"]]
|
|
|
10 |
learn = load_learner('export.pkl')
|
11 |
|
12 |
def reviews_generator(text,n_words):
|
13 |
+
preds = learn.predict(text, n_words)
|
14 |
return outputs
|
15 |
|
16 |
examples = [["The beauty of this books", "45"], ["I didn't like this book because", "30"]]
|