Gradio error

#1
by AlekseyCalvin - opened

Seems this space is erroring out from the Gradio 6-introduced breaking changes, which are functionally rather superficial, but compatibility-wise downright catastrophic. In short, they moved "theme/themes", "css", "js", and "head" parameters from "gr.Blocks" (line 218 in your app.py) way down to "launch()" (line 397 here) . Their only official justification for this is that it should "improve clarity"... 🤨 So, instead of with gr.Blocks(title="Z-Image LoRA Trainer", theme=gr.themes.Soft()) as demo:, it should now just be with gr.Blocks(title="Z-Image LoRA Trainer") as demo: and line 397 should now be demo.launch(theme=gr.themes.Soft()). And you could scope out everything else they changed here.

Sign up or log in to comment