gagan3012 commited on
Commit
9367eff
·
1 Parent(s): 77e5b87

Fixes and almost done

Browse files
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
+ ![carbon (7)](https://user-images.githubusercontent.com/49101362/129279588-17271a4c-7258-4208-a94d-89e5b97b6cd0.png)
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 ..models import predict_model
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.predict_model(text=text)
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