acecalisto3 commited on
Commit
ee58721
1 Parent(s): 500e615

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -32,7 +32,7 @@ markdown_with_custom_html(markdown_text, custom_html)
32
  # Set your Hugging Face API key here
33
  # hf_token = "YOUR_HUGGING_FACE_API_KEY" # Replace with your actual token
34
  # Get Hugging Face token from secrets.toml - this line should already be in the main code
35
- hf_token = st.secrets["huggingface"]["key"]
36
 
37
  HUGGING_FACE_REPO_URL = "https://huggingface.co/spaces/acecalisto3/DevToolKit"
38
  PROJECT_ROOT = "projects"
@@ -595,4 +595,5 @@ def add_file_to_dictionary(files, file_path):
595
  # Function to create a Space on Hugging Face
596
  def create_space(api, name, description, public, files, entrypoint="launch.py"):
597
  url = f"{hf_hub_url()}spaces/{name}/prepare-repo"
598
- headers = {"Authorization": f"Bearer {api.access_token}"}
 
 
32
  # Set your Hugging Face API key here
33
  # hf_token = "YOUR_HUGGING_FACE_API_KEY" # Replace with your actual token
34
  # Get Hugging Face token from secrets.toml - this line should already be in the main code
35
+ hf_token = "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"
36
 
37
  HUGGING_FACE_REPO_URL = "https://huggingface.co/spaces/acecalisto3/DevToolKit"
38
  PROJECT_ROOT = "projects"
 
595
  # Function to create a Space on Hugging Face
596
  def create_space(api, name, description, public, files, entrypoint="launch.py"):
597
  url = f"{hf_hub_url()}spaces/{name}/prepare-repo"
598
+ headers = {"Authorization": f"Bearer {api.access_token}"}
599
+