AssertionError: parameter: src must be one of dict_keys(['huggingface', 'models', 'spaces'])

#11
by AlStable - opened

╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /home/user/app/app.py:8 in │
│ │
│ 5 │
│ 6 │
│ 7 models=[ │
│ ❱ 8 gr.Interface.load("ItsJayQz/Marvel_WhatIf_Diffusion"), │
│ 9 gr.Interface.load("DGSpitzer/Cyberpunk-Anime-Diffusion"), │
│ 10 gr.Interface.load("DGSpitzer/Guan-Yu-Diffusion"), │
│ 11 gr.Interface.load("wavymulder/portraitplus"), │
│ │
│ /home/user/.local/lib/python3.8/site-packages/gradio/interface.py:109 in │
│ load │
│ │
│ 106 │ │ │ demo = gr.Interface.load("models/EleutherAI/gpt-neo-1.3B", │
│ 107 │ │ │ demo.launch() │
│ 108 │ │ """ │
│ ❱ 109 │ │ return super().load(name=name, src=src, api_key=api_key, alias │
│ 110 │ │
│ 111 │ @classmethod │
│ 112 │ def from_pipeline(cls, pipeline: transformers.Pipeline, **kwargs) │
│ │
│ /home/user/.local/lib/python3.8/site-packages/gradio/blocks.py:1163 in load │
│ │
│ 1160 │ │ │ │ raise ValueError( │
│ 1161 │ │ │ │ │ "Blocks.load() requires passing parameters as key │
│ 1162 │ │ │ │ ) │
│ ❱ 1163 │ │ │ return external.load_blocks_from_repo(name, src, api_key, │
│ 1164 │ │ else: │
│ 1165 │ │ │ return self_or_cls.set_event_trigger( │
│ 1166 │ │ │ │ event_name="load", │
│ │
│ /home/user/.local/lib/python3.8/site-packages/gradio/external.py:54 in │
│ load_blocks_from_repo │
│ │
│ 51 │ │ "models": from_model, │
│ 52 │ │ "spaces": from_spaces, │
│ 53 │ } │
│ ❱ 54 │ assert src.lower() in factory_methods, "parameter: src must be one │
│ 55 │ │ factory_methods.keys() │
│ 56 │ ) │
│ 57 │
╰──────────────────────────────────────────────────────────────────────────────╯
AssertionError: parameter: src must be one of dict_keys(['huggingface',
'models', 'spaces'])

Sign up or log in to comment