Update app.py
Browse files
app.py
CHANGED
@@ -109,11 +109,12 @@ def main():
|
|
109 |
# text_chunks = text_splitter.split_documents(text)
|
110 |
values = st.slider('Select a approximate number of lines to see and summarize',value=[0, len(tet)//(7*100)])
|
111 |
text = tet[values[0]*7*10:values[1]*10*100] if values[0]!=len(tet)//(10*100) else tet[len(tet)//(10*100):]
|
112 |
-
st.text("Selected text for summarize: ")
|
113 |
#st.success(type(text_chunks))
|
114 |
-
st.
|
115 |
-
|
116 |
-
|
|
|
117 |
|
118 |
elif uploaded_photo and uploaded_photo.type !='application/pdf':
|
119 |
text=None
|
|
|
109 |
# text_chunks = text_splitter.split_documents(text)
|
110 |
values = st.slider('Select a approximate number of lines to see and summarize',value=[0, len(tet)//(7*100)])
|
111 |
text = tet[values[0]*7*10:values[1]*10*100] if values[0]!=len(tet)//(10*100) else tet[len(tet)//(10*100):]
|
112 |
+
#st.text("Selected text for summarize: ")
|
113 |
#st.success(type(text_chunks))
|
114 |
+
if st.button("English Pdf Summarize"):
|
115 |
+
st.success(text)
|
116 |
+
st.text("Summarized Text: ")
|
117 |
+
engsum(text)
|
118 |
|
119 |
elif uploaded_photo and uploaded_photo.type !='application/pdf':
|
120 |
text=None
|