Spaces:
Sleeping
Sleeping
Commit ·
ff48b6d
1
Parent(s): 3894cc5
fix
Browse files
app.py
CHANGED
|
@@ -183,7 +183,7 @@ if __name__ == "__main__":
|
|
| 183 |
|
| 184 |
if space_host_startup:
|
| 185 |
print(f"✅ SPACE_HOST found: {space_host_startup}")
|
| 186 |
-
print(f" Runtime URL should be: https://{space_host_startup}
|
| 187 |
else:
|
| 188 |
print("ℹ️ SPACE_HOST environment variable not found (running locally?).")
|
| 189 |
|
|
@@ -197,4 +197,8 @@ if __name__ == "__main__":
|
|
| 197 |
print("-"*(60 + len(" App Starting ")) + "\n")
|
| 198 |
|
| 199 |
print("Launching Gradio Interface for Basic Agent Evaluation...")
|
| 200 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
|
| 184 |
if space_host_startup:
|
| 185 |
print(f"✅ SPACE_HOST found: {space_host_startup}")
|
| 186 |
+
print(f" Runtime URL should be: https://{space_host_startup}")
|
| 187 |
else:
|
| 188 |
print("ℹ️ SPACE_HOST environment variable not found (running locally?).")
|
| 189 |
|
|
|
|
| 197 |
print("-"*(60 + len(" App Starting ")) + "\n")
|
| 198 |
|
| 199 |
print("Launching Gradio Interface for Basic Agent Evaluation...")
|
| 200 |
+
on_space = bool(space_id_startup)
|
| 201 |
+
launch_kwargs = {"debug": not on_space, "share": False}
|
| 202 |
+
if on_space:
|
| 203 |
+
launch_kwargs["ssr_mode"] = False
|
| 204 |
+
demo.launch(**launch_kwargs)
|