Spaces:
Sleeping
Sleeping
Fix: Remove faulty MaxBodySizeMiddleware
Browse files- app/main.py +0 -7
app/main.py
CHANGED
|
@@ -43,14 +43,7 @@ app.add_middleware(
|
|
| 43 |
)
|
| 44 |
|
| 45 |
# Increase max request body size (50MB for audio files)
|
| 46 |
-
from starlette.middleware.base import BaseHTTPMiddleware
|
| 47 |
|
| 48 |
-
class MaxBodySizeMiddleware(BaseHTTPMiddleware):
|
| 49 |
-
def __init__(self, app, max_body_size: int = 50 * 1024 * 1024):
|
| 50 |
-
super().__init__(app)
|
| 51 |
-
self.max_body_size = max_body_size
|
| 52 |
-
|
| 53 |
-
app.add_middleware(MaxBodySizeMiddleware)
|
| 54 |
|
| 55 |
|
| 56 |
@app.get("/")
|
|
|
|
| 43 |
)
|
| 44 |
|
| 45 |
# Increase max request body size (50MB for audio files)
|
|
|
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
|
| 49 |
@app.get("/")
|