Skier8402 commited on
Commit
24a1172
·
verified ·
1 Parent(s): 16063a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -90,9 +90,6 @@ def main():
90
  st.session_state.chat_history = None
91
 
92
  st.header("Chat with Multiple PDFs :books:")
93
- user_question = st.text_input("Ask a question about your documents:")
94
- if user_question:
95
- handle_userinput(user_question)
96
 
97
  # Add Hugging Face token input
98
  huggingface_token = st.text_input("Enter your Hugging Face API token:", type="password")
@@ -100,6 +97,7 @@ def main():
100
  os.environ["HUGGINGFACEHUB_API_TOKEN"] = huggingface_token
101
 
102
  user_question = st.text_input("Ask a question about your documents:")
 
103
  if user_question:
104
  if not huggingface_token:
105
  st.error("Please enter your Hugging Face API token to proceed.")
 
90
  st.session_state.chat_history = None
91
 
92
  st.header("Chat with Multiple PDFs :books:")
 
 
 
93
 
94
  # Add Hugging Face token input
95
  huggingface_token = st.text_input("Enter your Hugging Face API token:", type="password")
 
97
  os.environ["HUGGINGFACEHUB_API_TOKEN"] = huggingface_token
98
 
99
  user_question = st.text_input("Ask a question about your documents:")
100
+
101
  if user_question:
102
  if not huggingface_token:
103
  st.error("Please enter your Hugging Face API token to proceed.")