Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -41,11 +41,12 @@ Live Space:
|
|
| 41 |
- Fresh local receipts are written under
|
| 42 |
`reports/generated/compression_space/`; run the full verifier with the
|
| 43 |
current Space SHA to check runtime, API smoke, and remote/local file parity.
|
| 44 |
-
- Latest live result: `/v1/compress` saved
|
| 45 |
managed `inputs[]` returned `input_count=2`, `succeeded=2`, `failed=0`,
|
| 46 |
-
and `/v1/classify`
|
| 47 |
-
|
| 48 |
-
|
|
|
|
| 49 |
The HTTP surface accepts `Content-Encoding: gzip` request bodies and gzip
|
| 50 |
responses for `Accept-Encoding: gzip` or gzipped requests. If an ingress
|
| 51 |
strips the standard content-encoding header, also send
|
|
|
|
| 41 |
- Fresh local receipts are written under
|
| 42 |
`reports/generated/compression_space/`; run the full verifier with the
|
| 43 |
current Space SHA to check runtime, API smoke, and remote/local file parity.
|
| 44 |
+
- Latest live result: `/v1/compress` saved 27/102 estimated tokens;
|
| 45 |
managed `inputs[]` returned `input_count=2`, `succeeded=2`, `failed=0`,
|
| 46 |
+
gzip transport returned `response_content_encoding=gzip`, and `/v1/classify`
|
| 47 |
+
returned KEEP-only DeBERTa tokenizer labels. Receipts include
|
| 48 |
+
removed-span/char totals, classifier DROP block reasons, and tool-schema
|
| 49 |
+
preservation counts when `tools` or `tool_schemas` are supplied.
|
| 50 |
The HTTP surface accepts `Content-Encoding: gzip` request bodies and gzip
|
| 51 |
responses for `Accept-Encoding: gzip` or gzipped requests. If an ingress
|
| 52 |
strips the standard content-encoding header, also send
|
app.py
CHANGED
|
@@ -99,7 +99,7 @@ async def transport_middleware(request: Request, call_next):
|
|
| 99 |
if key.lower() == b"content-length" else value,
|
| 100 |
)
|
| 101 |
for key, value in request.scope.get("headers", [])
|
| 102 |
-
if key.lower()
|
| 103 |
]
|
| 104 |
request = Request(scope, receive)
|
| 105 |
request.state.request_id = request_id
|
|
|
|
| 99 |
if key.lower() == b"content-length" else value,
|
| 100 |
)
|
| 101 |
for key, value in request.scope.get("headers", [])
|
| 102 |
+
if key.lower() not in (b"content-encoding", b"x-touchdown-content-encoding")
|
| 103 |
]
|
| 104 |
request = Request(scope, receive)
|
| 105 |
request.state.request_id = request_id
|