blazingbunny commited on
Commit
ce88ff9
·
1 Parent(s): 3368fcd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -5,14 +5,7 @@ import streamlit as st
5
 
6
  def sample_analyze_entities(text_content):
7
  # Parse the JSON string to a dictionary
8
- google_nlp_secrets = json.loads(st.secrets["google_nlp"])
9
-
10
- # Now, get the credentials
11
- service_account_info = google_nlp_secrets["credentials"]
12
-
13
- # If the credentials are already in dict form, no need to load from JSON
14
- if not isinstance(service_account_info, dict):
15
- service_account_info = json.loads(service_account_info)
16
 
17
  # Create credentials
18
  credentials = service_account.Credentials.from_service_account_info(
 
5
 
6
  def sample_analyze_entities(text_content):
7
  # Parse the JSON string to a dictionary
8
+ service_account_info = json.loads(st.secrets["google_nlp"])
 
 
 
 
 
 
 
9
 
10
  # Create credentials
11
  credentials = service_account.Credentials.from_service_account_info(