Spaces:
Runtime error
Runtime error
update app.py
Browse files
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")
|
| 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}")
|