akhilhsingh commited on
Commit
166aadb
1 Parent(s): 4833729

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import os
2
  import streamlit as st
3
  import boto3
@@ -14,8 +15,8 @@ aws_bucket=os.environ['BUCKET_NAME']
14
  session = boto3.session.Session()
15
  s3 = session.client('s3',
16
  region_name='us-west-2', # Update to the correct region
17
- aws_access_key_id=AWS_ACCESS_KEY,
18
- aws_secret_access_key=AWS_SECRET_KEY)
19
 
20
  def list_folders(bucket_name):
21
  try:
@@ -59,7 +60,7 @@ def count_files_in_folder(bucket_name, prefix):
59
  st.title('NeuroSinQ IAT Completions Dashboard')
60
 
61
  # Dropdown to select folder
62
- folders = list_folders(BUCKET_NAME)
63
  selected_folder = st.selectbox('Select a folder', folders, index=folders.index('/') if '/' in folders else 0)
64
 
65
  # Display file counts
 
1
+
2
  import os
3
  import streamlit as st
4
  import boto3
 
15
  session = boto3.session.Session()
16
  s3 = session.client('s3',
17
  region_name='us-west-2', # Update to the correct region
18
+ aws_access_key_id=aws_access_key,
19
+ aws_secret_access_key=aws_secret_key)
20
 
21
  def list_folders(bucket_name):
22
  try:
 
60
  st.title('NeuroSinQ IAT Completions Dashboard')
61
 
62
  # Dropdown to select folder
63
+ folders = list_folders(aws_bucket)
64
  selected_folder = st.selectbox('Select a folder', folders, index=folders.index('/') if '/' in folders else 0)
65
 
66
  # Display file counts