File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
python/sglang/multimodal_gen/apps/webui Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -111,9 +111,17 @@ def gradio_generate(
111111 sampling_params_str = "\n " .join (
112112 [f"{ key } : { value } " for key , value in sampling_params_kwargs .items ()]
113113 )
114- raise ValueError (
115- f"No output is generated by client, and their sampling params is: { sampling_params_str } "
116- )
114+ no_output_msg = f"No output is generated by client, and their sampling params is: { sampling_params_str } "
115+
116+ if batch .data_type == DataType .VIDEO :
117+ if os .path .exists (save_file_path ):
118+ logger .warning (no_output_msg )
119+ return None , save_file_path
120+ else :
121+ no_output_msg += f"\n And the expected output file was not found at: { save_file_path } "
122+ raise ValueError (no_output_msg )
123+ else :
124+ raise ValueError (no_output_msg )
117125
118126 frames = post_process_sample (
119127 result .output [0 ],
You can’t perform that action at this time.
0 commit comments