Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
•
f69b674
1
Parent(s):
9f87b83
Update predict_model.py
Browse files
src/models/predict_model.py
CHANGED
@@ -8,6 +8,7 @@ def predict_model(text):
|
|
8 |
"""
|
9 |
Predict the summary of the given text.
|
10 |
"""
|
|
|
11 |
model = Summarization()
|
12 |
model.load_model()
|
13 |
pre_summary = model.predict(text)
|
|
|
8 |
"""
|
9 |
Predict the summary of the given text.
|
10 |
"""
|
11 |
+
with open("params.yml") as f:
|
12 |
model = Summarization()
|
13 |
model.load_model()
|
14 |
pre_summary = model.predict(text)
|