Spaces:
Sleeping
Sleeping
adjusting
Browse files- src/main.py +9 -6
src/main.py
CHANGED
|
@@ -17,10 +17,13 @@ from fastapi.security import APIKeyHeader
|
|
| 17 |
import httpx
|
| 18 |
|
| 19 |
# ============================================================
|
| 20 |
-
#
|
| 21 |
# ============================================================
|
| 22 |
# Set to True for detailed logging, False for minimal logging
|
| 23 |
-
DEBUG =
|
|
|
|
|
|
|
|
|
|
| 24 |
# ============================================================
|
| 25 |
|
| 26 |
def debug_print(*args, **kwargs):
|
|
@@ -1574,8 +1577,8 @@ if __name__ == "__main__":
|
|
| 1574 |
print("=" * 60)
|
| 1575 |
print("π LMArena Bridge Server Starting...")
|
| 1576 |
print("=" * 60)
|
| 1577 |
-
print(f"π Dashboard: http://localhost:
|
| 1578 |
-
print(f"π Login: http://localhost:
|
| 1579 |
-
print(f"π API Base URL: http://localhost:
|
| 1580 |
print("=" * 60)
|
| 1581 |
-
uvicorn.run(app, host="0.0.0.0", port=
|
|
|
|
| 17 |
import httpx
|
| 18 |
|
| 19 |
# ============================================================
|
| 20 |
+
# CONFIGURATION
|
| 21 |
# ============================================================
|
| 22 |
# Set to True for detailed logging, False for minimal logging
|
| 23 |
+
DEBUG = True
|
| 24 |
+
|
| 25 |
+
# Port to run the server on
|
| 26 |
+
PORT = 8000
|
| 27 |
# ============================================================
|
| 28 |
|
| 29 |
def debug_print(*args, **kwargs):
|
|
|
|
| 1577 |
print("=" * 60)
|
| 1578 |
print("π LMArena Bridge Server Starting...")
|
| 1579 |
print("=" * 60)
|
| 1580 |
+
print(f"π Dashboard: http://localhost:{PORT}/dashboard")
|
| 1581 |
+
print(f"π Login: http://localhost:{PORT}/login")
|
| 1582 |
+
print(f"π API Base URL: http://localhost:{PORT}/api/v1")
|
| 1583 |
print("=" * 60)
|
| 1584 |
+
uvicorn.run(app, host="0.0.0.0", port=PORT)
|