Final definitive deployment with clean routes and logging
Browse files- helpers/ui_server.py +1 -1
helpers/ui_server.py
CHANGED
|
@@ -65,7 +65,7 @@ class UiServerRuntime:
|
|
| 65 |
|
| 66 |
if os.getenv("HF_SPACE") == "true":
|
| 67 |
from werkzeug.middleware.proxy_fix import ProxyFix
|
| 68 |
-
webapp.wsgi_app = ProxyFix(webapp.wsgi_app, x_for=1, x_proto=1, x_host=1
|
| 69 |
|
| 70 |
WerkzeugRequest.max_form_memory_size = UPLOAD_LIMIT_BYTES
|
| 71 |
webapp.config.update(
|
|
|
|
| 65 |
|
| 66 |
if os.getenv("HF_SPACE") == "true":
|
| 67 |
from werkzeug.middleware.proxy_fix import ProxyFix
|
| 68 |
+
webapp.wsgi_app = ProxyFix(webapp.wsgi_app, x_for=1, x_proto=1, x_host=1) # type: ignore
|
| 69 |
|
| 70 |
WerkzeugRequest.max_form_memory_size = UPLOAD_LIMIT_BYTES
|
| 71 |
webapp.config.update(
|