Raise hosted upload limit
This commit is contained in:
parent
c13f3b841c
commit
34521467d6
2 changed files with 3 additions and 3 deletions
|
|
@ -173,7 +173,7 @@ class HostedDemoConfig:
|
|||
def from_env(cls) -> "HostedDemoConfig":
|
||||
hosted_demo = _env_flag("REPIXELIZER_HOSTED_DEMO", False)
|
||||
defaults = {
|
||||
"max_upload_bytes": 2 * 1_048_576 if hosted_demo else 16 * 1_048_576,
|
||||
"max_upload_bytes": 5 * 1_048_576 if hosted_demo else 16 * 1_048_576,
|
||||
"max_input_dimension": 2048 if hosted_demo else 4096,
|
||||
"max_output_dimension": 512 if hosted_demo else 1024,
|
||||
"default_steps": 32 if hosted_demo else 48,
|
||||
|
|
|
|||
|
|
@ -728,7 +728,7 @@ def test_gui_hosted_config_endpoint_exposes_demo_limits(monkeypatch, tmp_path: P
|
|||
payload = _response_json(_route_endpoint(app, "/api/config", "GET")())
|
||||
|
||||
assert payload["hostedDemo"] is True
|
||||
assert payload["limits"]["maxUploadBytes"] == 2 * 1_048_576
|
||||
assert payload["limits"]["maxUploadBytes"] == 5 * 1_048_576
|
||||
assert payload["limits"]["maxOutputDimension"] == 512
|
||||
assert payload["limits"]["defaultSteps"] == 32
|
||||
assert payload["ui"]["showDeviceControl"] is False
|
||||
|
|
@ -1041,7 +1041,7 @@ def test_hosted_job_options_use_autocorr_and_force_rerank() -> None:
|
|||
config = HostedDemoConfig(
|
||||
hosted_demo=True,
|
||||
show_queue_panel=True,
|
||||
max_upload_bytes=2 * 1_048_576,
|
||||
max_upload_bytes=5 * 1_048_576,
|
||||
max_input_dimension=2048,
|
||||
max_output_dimension=512,
|
||||
default_steps=32,
|
||||
|
|
|
|||
Loading…
Reference in a new issue