Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -97,13 +97,11 @@ def main():
|
|
97 |
|
98 |
# Check if any document is uploaded
|
99 |
if pdf_docs:
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
else:
|
105 |
-
st.write("Please upload a document first to ask questions.")
|
106 |
-
|
107 |
-
|
108 |
if __name__ == "__main__":
|
109 |
main()
|
|
|
97 |
|
98 |
# Check if any document is uploaded
|
99 |
if pdf_docs:
|
100 |
+
if st.success("Done"):
|
101 |
+
user_question = st.text_input("Ask a question from the Docs")
|
102 |
+
if user_question:
|
103 |
+
user_input(user_question, api_key)
|
104 |
else:
|
105 |
+
st.write("Please upload a document first to ask questions.")
|
|
|
|
|
106 |
if __name__ == "__main__":
|
107 |
main()
|