Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: '' #275

Closed
SilianZ opened this issue Oct 26, 2024 · 4 comments
Closed

KeyError: '' #275

SilianZ opened this issue Oct 26, 2024 · 4 comments

Comments

@SilianZ
Copy link

SilianZ commented Oct 26, 2024

Traceback (most recent call last):
  File "D:\Codespaces\fastsdcpu\env\Lib\site-packages\gradio\queueing.py", line 536, in process_events
    response = await route_utils.call_process_api(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Codespaces\fastsdcpu\env\Lib\site-packages\gradio\route_utils.py", line 322, in call_process_api
    output = await app.get_blocks().process_api(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Codespaces\fastsdcpu\env\Lib\site-packages\gradio\blocks.py", line 1935, in process_api
    result = await self.call_function(
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Codespaces\fastsdcpu\env\Lib\site-packages\gradio\blocks.py", line 1520, in call_function
    prediction = await anyio.to_thread.run_sync(  # type: ignore
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Codespaces\fastsdcpu\env\Lib\site-packages\anyio\to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Codespaces\fastsdcpu\env\Lib\site-packages\anyio\_backends\_asyncio.py", line 2441, in run_sync_in_worker_thread
    return await future
           ^^^^^^^^^^^^
  File "D:\Codespaces\fastsdcpu\env\Lib\site-packages\anyio\_backends\_asyncio.py", line 943, in run
    result = context.run(func, *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Codespaces\fastsdcpu\env\Lib\site-packages\gradio\utils.py", line 826, in wrapper
    response = f(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^
  File "D:\Codespaces\fastsdcpu\src\frontend\webui\lora_models_ui.py", line 57, in on_click_load_lora
    settings.lora.path = lora_models_map[lora_name]
                         ~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: ''

@rupeshs
Copy link
Owner

rupeshs commented Oct 26, 2024

@SilianZ If you are using lora model please follow this tutorial https://www.youtube.com/watch?app=desktop&v=N_LUxd6G2nk

@asstormcoming
Copy link

@SilianZ If you are using lora model please follow this tutorial https://www.youtube.com/watch?app=desktop&v=N_LUxd6G2nk

I followed the tutorial, but I'm having the same issue when I click the Load selected LoRA button

@rupeshs
Copy link
Owner

rupeshs commented Nov 23, 2024

Thanks for reporting @SilianZ @asstormcoming It was due to gradio issue, fix is coming soon. Thank you for using Fastsdcpu

@rupeshs
Copy link
Owner

rupeshs commented Nov 23, 2024

@rupeshs rupeshs closed this as completed Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants