Huzaifa367 commited on
Commit
a941364
·
verified ·
1 Parent(s): 237f3b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -97,13 +97,11 @@ def main():
97
 
98
  # Check if any document is uploaded
99
  if pdf_docs:
100
- user_question = st.text_input("Ask a question from the Docs")
101
-
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
-
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()