euler314 commited on
Commit
52edb5d
·
verified ·
1 Parent(s): 3fcf3ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -50,11 +50,11 @@ except ImportError:
50
  logger.warning("streamlit-ace not available, falling back to standard text editor")
51
 
52
  # New functions for accessing secrets and password verification
53
- def get_secret(secret_name):
54
  """Retrieve a secret from HuggingFace Spaces environment variables"""
55
- secret_value = os.environ.get(secret_name)
56
  if not secret_value:
57
- logger.warning(f"Secret '{secret_name}' not found")
58
  return None
59
  return secret_value
60
 
@@ -101,8 +101,6 @@ def ensure_packages():
101
  'seaborn': '0.11.2', # For enhanced visualizations
102
  'scipy': '1.7.3', # For scientific computations
103
  'huggingface_hub': '0.16.0', # For Hugging Face API
104
- 'azure-ai-inference': '1.0.0',
105
- 'azure-core': '1.29.5',
106
  }
107
 
108
  with st.spinner("Checking required packages..."):
 
50
  logger.warning("streamlit-ace not available, falling back to standard text editor")
51
 
52
  # New functions for accessing secrets and password verification
53
+ def get_secret(github_token_api):
54
  """Retrieve a secret from HuggingFace Spaces environment variables"""
55
+ secret_value = os.environ.get(github_token_api)
56
  if not secret_value:
57
+ logger.warning(f"Secret '{github_token_api}' not found")
58
  return None
59
  return secret_value
60
 
 
101
  'seaborn': '0.11.2', # For enhanced visualizations
102
  'scipy': '1.7.3', # For scientific computations
103
  'huggingface_hub': '0.16.0', # For Hugging Face API
 
 
104
  }
105
 
106
  with st.spinner("Checking required packages..."):