Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -541,4 +541,19 @@ if __name__ == "__main__":
|
|
541 |
space_id_startup = os.getenv("SPACE_ID")
|
542 |
|
543 |
if space_host_startup:
|
544 |
-
print(f"✅ SPACE_HOST
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
541 |
space_id_startup = os.getenv("SPACE_ID")
|
542 |
|
543 |
if space_host_startup:
|
544 |
+
print(f"✅ SPACE_HOST found: {space_host_startup}")
|
545 |
+
print(f" Runtime URL should be: https://{space_host_startup}.hf.space")
|
546 |
+
else:
|
547 |
+
print("ℹ️ SPACE_HOST environment variable not found (running locally?).")
|
548 |
+
|
549 |
+
if space_id_startup:
|
550 |
+
print(f"✅ SPACE_ID found: {space_id_startup}")
|
551 |
+
print(f" Repo URL: https://huggingface.co/spaces/{space_id_startup}")
|
552 |
+
print(f" Repo Tree URL: https://huggingface.co/spaces/{space_id_startup}/tree/main")
|
553 |
+
else:
|
554 |
+
print("ℹ️ SPACE_ID environment variable not found (running locally?). Repo URL cannot be determined.")
|
555 |
+
|
556 |
+
print("-"*(60 + len(" Intelligent Agent Starting ")) + "\n")
|
557 |
+
|
558 |
+
print("Launching Intelligent Agent Interface...")
|
559 |
+
demo.launch(debug=True, share=False
|