Spaces:
Runtime error
Runtime error
Update pages/summarizer.py
Browse files- pages/summarizer.py +1 -8
pages/summarizer.py
CHANGED
@@ -45,13 +45,6 @@ def main():
|
|
45 |
with st.sidebar:
|
46 |
if st.button("Chat With PDF"):
|
47 |
st.switch_page('app.py')
|
48 |
-
|
49 |
-
if pdf_docs:
|
50 |
-
user_question = st.text_input("Ask a question from the Docs")
|
51 |
-
if user_question:
|
52 |
-
user_input(user_question, api_key)
|
53 |
-
else:
|
54 |
-
st.write("Please upload a document first to ask questions.")
|
55 |
-
|
56 |
if __name__ == "__main__":
|
57 |
main()
|
|
|
45 |
with st.sidebar:
|
46 |
if st.button("Chat With PDF"):
|
47 |
st.switch_page('app.py')
|
48 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
if __name__ == "__main__":
|
50 |
main()
|