Spaces:
Sleeping
Sleeping
Chandranshu Jain
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,8 +105,7 @@ with st.sidebar:
|
|
| 105 |
|
| 106 |
query = st.chat_input("Ask a Question from the PDF File")
|
| 107 |
if query:
|
| 108 |
-
|
| 109 |
-
raw_text = get_pdf(file)
|
| 110 |
text_chunks = text_splitter(raw_text)
|
| 111 |
st.session_state.messages.append({'role': 'user', "content": query})
|
| 112 |
response = embedding(text_chunks,query)
|
|
|
|
| 105 |
|
| 106 |
query = st.chat_input("Ask a Question from the PDF File")
|
| 107 |
if query:
|
| 108 |
+
raw_text = get_pdf(pdf_docs)
|
|
|
|
| 109 |
text_chunks = text_splitter(raw_text)
|
| 110 |
st.session_state.messages.append({'role': 'user', "content": query})
|
| 111 |
response = embedding(text_chunks,query)
|