Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
·
bd01d65
1
Parent(s):
b70a874
Update predict_model.py
Browse files
src/models/predict_model.py
CHANGED
|
@@ -12,7 +12,7 @@ def predict_model(text):
|
|
| 12 |
params = yaml.safe_load(f)
|
| 13 |
|
| 14 |
model = Summarization()
|
| 15 |
-
model.load_model(model_type=params[
|
| 16 |
pre_summary = model.predict(text)
|
| 17 |
return pre_summary
|
| 18 |
|
|
|
|
| 12 |
params = yaml.safe_load(f)
|
| 13 |
|
| 14 |
model = Summarization()
|
| 15 |
+
model.load_model(model_type=params["model_type"], model_dir=params["model_dir"])
|
| 16 |
pre_summary = model.predict(text)
|
| 17 |
return pre_summary
|
| 18 |
|