Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,23 @@ st.title('Educational Assistant')
|
|
12 |
st.header('Summary, Quiz Generator, Q&A, and Study Plan')
|
13 |
st.sidebar.title('Drop your PDF here')
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
# Input OpenAI API key from keyboard
|
16 |
openai_api_key = st.sidebar.text_input("Enter your OpenAI API Key", type="password")
|
17 |
|
|
|
12 |
st.header('Summary, Quiz Generator, Q&A, and Study Plan')
|
13 |
st.sidebar.title('Drop your PDF here')
|
14 |
|
15 |
+
# Instructions in the sidebar
|
16 |
+
with st.sidebar.expander("Instructions on how to use this app"):
|
17 |
+
st.markdown("""
|
18 |
+
**Welcome to the Educational Assistant!** Here's how you can use the app:
|
19 |
+
|
20 |
+
1. **Enter your OpenAI API Key**: You need to enter your OpenAI API key in the sidebar (password type) to authenticate your requests.
|
21 |
+
2. **Upload a PDF file**: Click on the 'Upload PDF' button to upload the document you want to analyze.
|
22 |
+
3. **Select an Option**: Choose one of the options:
|
23 |
+
- **Generate Summary**: Generate a concise summary of the content in your uploaded PDF.
|
24 |
+
- **Generate Quiz**: Create a quiz with multiple-choice questions based on the content of your PDF.
|
25 |
+
- **Ask a Question**: Ask a specific question about the content, and get a detailed answer.
|
26 |
+
- **Generate Study Plan**: Generate a logical 7-day study plan based on the content in your PDF.
|
27 |
+
4. **Download PDF**: Once the result is generated, you will be able to download it as a PDF.
|
28 |
+
|
29 |
+
Happy learning!
|
30 |
+
""")
|
31 |
+
|
32 |
# Input OpenAI API key from keyboard
|
33 |
openai_api_key = st.sidebar.text_input("Enter your OpenAI API Key", type="password")
|
34 |
|