Neda1 commited on
Commit
a394de8
Β·
verified Β·
1 Parent(s): b0c588c

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
38
  and displays the results.
39
  """
40
  # --- Determine HF Space Runtime URL and Repo URL ---
41
- space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
42
 
43
  if profile:
44
  username= f"{profile.username}"
@@ -187,6 +187,7 @@ if __name__ == "__main__":
187
  # Check for SPACE_HOST and SPACE_ID at startup for information
188
  space_host_startup = os.getenv("SPACE_HOST")
189
  space_id_startup = os.getenv("SPACE_ID") # Get SPACE_ID at startup
 
190
 
191
  if space_host_startup:
192
  print(f"βœ… SPACE_HOST found: {space_host_startup}")
 
38
  and displays the results.
39
  """
40
  # --- Determine HF Space Runtime URL and Repo URL ---
41
+ space_id = os.getenv("SPACE_ID", "https://huggingface.co/spaces/Neda1/agent_final")# Get the SPACE_ID for sending link to the code
42
 
43
  if profile:
44
  username= f"{profile.username}"
 
187
  # Check for SPACE_HOST and SPACE_ID at startup for information
188
  space_host_startup = os.getenv("SPACE_HOST")
189
  space_id_startup = os.getenv("SPACE_ID") # Get SPACE_ID at startup
190
+
191
 
192
  if space_host_startup:
193
  print(f"βœ… SPACE_HOST found: {space_host_startup}")