Spaces:
Sleeping
Sleeping
Suppress authenticated scheduler request logs
Browse files
app.py
CHANGED
|
@@ -34,6 +34,10 @@ logging.basicConfig(
|
|
| 34 |
format="%(asctime)s %(levelname)s %(name)s: %(message)s",
|
| 35 |
)
|
| 36 |
LOGGER = logging.getLogger("rsreasonnet-space")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
VISION_MODEL_ID = "openai/clip-vit-large-patch14"
|
| 39 |
VISION_MODEL_REVISION = "32bd64288804d66eefd0ccbe215aa642df71cc41"
|
|
|
|
| 34 |
format="%(asctime)s %(levelname)s %(name)s: %(message)s",
|
| 35 |
)
|
| 36 |
LOGGER = logging.getLogger("rsreasonnet-space")
|
| 37 |
+
# ZeroGPU's device scheduler uses authenticated internal URLs. Suppress the
|
| 38 |
+
# third-party HTTP client's INFO request logging so transient credentials never
|
| 39 |
+
# appear in application logs; our own lifecycle logs remain at INFO.
|
| 40 |
+
logging.getLogger("httpx").setLevel(logging.WARNING)
|
| 41 |
|
| 42 |
VISION_MODEL_ID = "openai/clip-vit-large-patch14"
|
| 43 |
VISION_MODEL_REVISION = "32bd64288804d66eefd0ccbe215aa642df71cc41"
|