Spaces:
Runtime error
Runtime error
Fixes and almost done
Browse files- README.md +3 -0
- src/models/predict_model.py +0 -1
- src/visualization/visualize.py +2 -2
README.md
CHANGED
@@ -78,3 +78,6 @@ Next if we would like to test the model and visualise the results we can run:
|
|
78 |
t5s visualize
|
79 |
```
|
80 |
And this would create a streamlit app for testing
|
|
|
|
|
|
|
|
78 |
t5s visualize
|
79 |
```
|
80 |
And this would create a streamlit app for testing
|
81 |
+
|
82 |
+
|
83 |
+

|
src/models/predict_model.py
CHANGED
@@ -14,4 +14,3 @@ def predict_model(text: str):
|
|
14 |
model.load_model(model_type=params["model_type"], model_dir=params["model_dir"])
|
15 |
pre_summary = model.predict(text)
|
16 |
return pre_summary
|
17 |
-
|
|
|
14 |
model.load_model(model_type=params["model_type"], model_dir=params["model_dir"])
|
15 |
pre_summary = model.predict(text)
|
16 |
return pre_summary
|
|
src/visualization/visualize.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
from
|
4 |
|
5 |
|
6 |
def visualize():
|
@@ -15,7 +15,7 @@ def visualize():
|
|
15 |
text = st.text_area("Enter text here")
|
16 |
if st.button("Generate Summary"):
|
17 |
with st.spinner("Connecting the Dots..."):
|
18 |
-
sumtext = predict_model
|
19 |
st.write("# Generated Summary:")
|
20 |
st.write("{}".format(sumtext))
|
21 |
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
from src.models.predict_model import predict_model
|
4 |
|
5 |
|
6 |
def visualize():
|
|
|
15 |
text = st.text_area("Enter text here")
|
16 |
if st.button("Generate Summary"):
|
17 |
with st.spinner("Connecting the Dots..."):
|
18 |
+
sumtext = predict_model(text=text)
|
19 |
st.write("# Generated Summary:")
|
20 |
st.write("{}".format(sumtext))
|
21 |
|