Samarth991 commited on
Commit
c0365f2
·
verified ·
1 Parent(s): 5dd99b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -29,19 +29,18 @@ def main():
29
  api_input = st.sidebar.text_input(
30
  "Enter The API KEY 👇",
31
  label_visibility=st.session_state.visibility,
32
- disabled=st.session_state.disabled,
33
  type="password"
34
  )
35
 
36
  if uploaded_file is not None:
37
  save_folder = 'docs/'
38
  save_path = Path(save_folder, uploaded_file.name)
39
- print(save_path)
40
  with open(save_path, mode='wb') as w:
41
  w.write(uploaded_file.getvalue())
42
 
43
- st.sidebar.success("File uploaded successfully.")
44
- print(save_path)
45
  vector_store = PDF_4_QA(save_path)
46
  QA_Bot(vector_store,api_input)
47
 
 
29
  api_input = st.sidebar.text_input(
30
  "Enter The API KEY 👇",
31
  label_visibility=st.session_state.visibility,
32
+ disabled=st.session_state.disabled
33
  type="password"
34
  )
35
 
36
  if uploaded_file is not None:
37
  save_folder = 'docs/'
38
  save_path = Path(save_folder, uploaded_file.name)
 
39
  with open(save_path, mode='wb') as w:
40
  w.write(uploaded_file.getvalue())
41
 
42
+ st.sidebar.success("File uploaded successfully",icon="✅")
43
+
44
  vector_store = PDF_4_QA(save_path)
45
  QA_Bot(vector_store,api_input)
46