Shubham170793 commited on
Commit
e54b975
·
verified ·
1 Parent(s): 71328cc

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -1
src/streamlit_app.py CHANGED
@@ -164,7 +164,8 @@ if "show_more" not in st.session_state:
164
  def set_user_query(q):
165
  st.session_state["user_query_input"] = q
166
 
167
- doc_choice = st.radio("", ["-- Select --", "Sample PDF", "Upload Custom PDF"], index=1)
 
168
 
169
  if doc_choice == "-- Select --":
170
  st.info("⬅️ Select a document to begin.")
 
164
  def set_user_query(q):
165
  st.session_state["user_query_input"] = q
166
 
167
+ # <-- FIX: default index is 0 so "-- Select --" is shown on load
168
+ doc_choice = st.radio("", ["-- Select --", "Sample PDF", "Upload Custom PDF"], index=0)
169
 
170
  if doc_choice == "-- Select --":
171
  st.info("⬅️ Select a document to begin.")