Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCleverIdiott authored Nov 17, 2023
1 parent 7e4fb44 commit 0140ae1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def extract_text_from_pdf(file_path):
choice = st.sidebar.selectbox("Select your choice", ["Summarize Text", "Summarize Document"])

if choice == "Summarize Text":
st.subheader("Summarize Text using txtai")
st.subheader("Summarize Text")
st.write("Made by Aritra Ghosh (itsaritra.pages.dev)")
input_text = st.text_area("Enter your text here")
if input_text is not None:
if st.button("Summarize Text"):
Expand All @@ -37,7 +38,8 @@ def extract_text_from_pdf(file_path):
st.success(result)

elif choice == "Summarize Document":
st.subheader("Summarize Document using txtai")
st.subheader("Summarize Document")
st.write("Made by Aritra Ghosh (itsaritra.pages.dev)")
input_file = st.file_uploader("Upload your document here", type=['pdf'])
if input_file is not None:
if st.button("Summarize Document"):
Expand Down

0 comments on commit 0140ae1

Please sign in to comment.