| import streamlit as st | |
| from main import main | |
| st.title("Chat With Uploaded Pdf") | |
| uploaded_file = st.file_uploader("Choose a PDF file") | |
| user_question = st.text_input("Enter the question from the PDF: ") | |
| if uploaded_file: | |
| if user_question: | |
| response = main(uploaded_file, user_question) | |
| st.write(response) | |