-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Description
On a fresh dia installation the start aborts with following error:
G:\pinokio\api\dia-fork.git\app\env\Scripts\activate G:\pinokio\api\dia-fork.git\app\env && python app.py
Using device: cuda
Loading Nari model...
Using device: cuda, attempting to load model with float16
G:\pinokio\api\dia-fork.git\app\env\lib\site-packages\audiotools\ml\layers\base.py:172: UserWarning: Environment variable TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD detected, since the`weights_only` argument was not explicitly passed to `torch.load`, forcing weights_only=
False.
model_dict = torch.load(location, "cpu")
G:\pinokio\api\dia-fork.git\app\env\lib\site-packages\torch\nn\utils\weight_norm.py:143: FutureWarning: `torch.nn.utils.weight_norm` is deprecated in favor of `torch.nn.utils.parametrizations.weight_norm`.
WeightNorm.apply(module, name, dim)
Traceback (most recent call last):
File "G:\pinokio\api\dia-fork.git\app\app.py", line 275, in <module>
with gr.Blocks(css=css, theme="gradio/dark") as demo:
File "G:\pinokio\api\dia-fork.git\app\env\lib\site-packages\gradio\blocks.py", line 1071, in __init__
super().__init__(render=False, **kwargs)
TypeError: BlockContext.__init__() got an unexpected keyword argument 'css'
(env) (base) G:\pinokio\api\dia-fork.git\app>In gradio 6.x css and theme were moved from gradio blocks to demo launch.
Line in question:
Line 275 in 876125e
| with gr.Blocks(css=css, theme="gradio/dark") as demo: |
This can be resolved by eitehr pinning gradio 5.50.0 in pyproject.toml or setting css and theme in demo.launch
demo.launch(css=css, theme="gradio/dark", share=args.share)Metadata
Metadata
Assignees
Labels
No labels