Ninad077 commited on
Commit
b58e8f7
·
verified ·
1 Parent(s): 8e30343

Upload bot.py

Browse files
Files changed (1) hide show
  1. bot.py +7 -1
bot.py CHANGED
@@ -7,6 +7,7 @@ import base64
7
  from patterns import count_patterns, list_patterns, pdf_request_patterns, greetings, farewell # Import patterns
8
  from google.cloud import storage
9
  from tempfile import NamedTemporaryFile
 
10
 
11
  # Base GCS path and local download path
12
  BASE_GCS_PATH = "gs://fynd-assets-private/documents/daytrader/"
@@ -150,6 +151,11 @@ def main():
150
 
151
  os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = json_path
152
 
 
 
 
 
 
153
  st.markdown(
154
  """
155
  <h1 style="
@@ -162,7 +168,7 @@ def main():
162
  Fynder
163
  </h1>
164
  """,
165
- unsafe_allow_html=True
166
  )
167
 
168
 
 
7
  from patterns import count_patterns, list_patterns, pdf_request_patterns, greetings, farewell # Import patterns
8
  from google.cloud import storage
9
  from tempfile import NamedTemporaryFile
10
+ import json
11
 
12
  # Base GCS path and local download path
13
  BASE_GCS_PATH = "gs://fynd-assets-private/documents/daytrader/"
 
151
 
152
  os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = json_path
153
 
154
+ with open(json_path) as f:
155
+ credentials_info = json.load(f)
156
+ st.write("Loaded credentials for:", credentials_info.get("client_email"))
157
+
158
+
159
  st.markdown(
160
  """
161
  <h1 style="
 
168
  Fynder
169
  </h1>
170
  """,
171
+ unsafe_allow_html=True
172
  )
173
 
174