Spaces:
Running on Zero
Running on Zero
Commit History
4 days ago
-
fix: an output folder outside the working directory and the temp dir is passed to launch as allowed_paths, so Gradio serves the results written there
Unverified signatureGradio serves a file a step returns only from the working directory, the system temp dir, its own cache or launch(allowed_paths=...). With LTX25_OUTPUT_DIR outside the first two, the run on real weights finished and Gradio refused its file. app.main() now asks ui.blocks.served_outputs() about the configured output folder (generate.configured_output_root(), the folder the writer and the startup sweep use). Resolved, links included as Gradio resolves them, a folder under the working directory or the temp dir needs nothing and the launch is exactly as before (the default outputs/, and the Space). A folder outside both is passed as the only allowed path, with one log line saying so. tests/test_app_launch.py imports the app and calls main() with launch replaced, against a working directory and a temp dir of the test's own: the default folder, one under the temp dir and one reached through a link into it launch with max_file_size alone; an absolute or relative folder outside both is passed…e7cde1a