Alex5666 commited on
Commit
ac6364d
1 Parent(s): f24830b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -21,13 +21,17 @@ import os # For handling file and directory paths.
21
  # Import a handler for streaming outputs.
22
  from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler # For live updates in the Streamlit app.
23
 
24
- # Set the title of the Streamlit web application.
25
  st.title("ChatPDF")
 
 
 
 
 
26
  # Create a visual separator in the app.
27
  st.write("---")
28
 
29
  # Add a file uploader widget for users to upload their PDF files.
30
- uploaded_file = st.file_uploader("Upload your PDF file!", type=['pdf'])
31
  # Another visual separator after the file uploader.
32
  st.write("---")
33
 
 
21
  # Import a handler for streaming outputs.
22
  from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler # For live updates in the Streamlit app.
23
 
 
24
  st.title("ChatPDF")
25
+
26
+ st.markdown("""
27
+ ChatPDF is a web application that can answer questions based on a PDF document. To use the app, simply upload a PDF file and type your question in the input box. The app will then use a powerful language model to generate an answer to your question.
28
+ """)
29
+
30
  # Create a visual separator in the app.
31
  st.write("---")
32
 
33
  # Add a file uploader widget for users to upload their PDF files.
34
+ uploaded_file = st.sidebar.file_uploader("Upload your PDF file!", type=['pdf'])
35
  # Another visual separator after the file uploader.
36
  st.write("---")
37