blazingbunny commited on
Commit
9fef07d
·
1 Parent(s): b2debf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import json
2
- import streamlit as st
3
  from google.oauth2 import service_account
4
  from google.cloud import language_v1
 
5
 
6
  def sample_analyze_entities(text_content):
7
  # Parse the JSON string to a dictionary
@@ -12,6 +12,10 @@ def sample_analyze_entities(text_content):
12
  service_account_info, scopes=["https://www.googleapis.com/auth/cloud-platform"]
13
  )
14
 
 
 
 
 
15
  # Initialize the LanguageServiceClient with the credentials
16
  client = language_v1.LanguageServiceClient(credentials=credentials)
17
 
 
1
  import json
 
2
  from google.oauth2 import service_account
3
  from google.cloud import language_v1
4
+ import streamlit as st
5
 
6
  def sample_analyze_entities(text_content):
7
  # Parse the JSON string to a dictionary
 
12
  service_account_info, scopes=["https://www.googleapis.com/auth/cloud-platform"]
13
  )
14
 
15
+ # Debug: Print or log the type and content of credentials
16
+ st.write(f"Debug - Type of credentials: {type(credentials)}")
17
+ st.write(f"Debug - Content of credentials: {credentials}")
18
+
19
  # Initialize the LanguageServiceClient with the credentials
20
  client = language_v1.LanguageServiceClient(credentials=credentials)
21