nixonthe commited on
Commit
8e942e6
·
1 Parent(s): de249f6
Files changed (2) hide show
  1. README.md +4 -2
  2. app.py +1 -1
README.md CHANGED
@@ -1,12 +1,14 @@
1
  ---
2
  title: Langchain Agent
3
  emoji: 🦀
4
- colorFrom: gray
5
- colorTo: green
6
  sdk: gradio
7
  sdk_version: 5.29.0
8
  app_file: app.py
9
  pinned: false
 
 
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
  title: Langchain Agent
3
  emoji: 🦀
4
+ colorFrom: indigo
5
+ colorTo: indigo
6
  sdk: gradio
7
  sdk_version: 5.29.0
8
  app_file: app.py
9
  pinned: false
10
+ hf_oauth: true
11
+ hf_oauth_expiration_minutes: 480
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -41,7 +41,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
41
  and displays the results.
42
  """
43
  # --- Determine HF Space Runtime URL and Repo URL ---
44
- space_id = "nixonthe" # Get the SPACE_ID for sending link to the code
45
 
46
  if profile:
47
  username= f"{profile.username}"
 
41
  and displays the results.
42
  """
43
  # --- Determine HF Space Runtime URL and Repo URL ---
44
+ space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
45
 
46
  if profile:
47
  username= f"{profile.username}"