[Bug]: Wrong type for `shared.device`: `device: str = None`
thiliapr opened this issue · 0 comments
thiliapr commented
Checklist
- The issue exists after disabling all extensions
- The issue exists on a clean installation of webui
- The issue is caused by an extension, but I believe it is caused by a bug in the webui
- The issue exists in the current version of the webui
- The issue has not been reported before recently
- The issue has been reported before but has not been fixed yet
What happened?
I found this type error in modules/shared.py#L25.
Here's part of the code for that file:
# ...
demo: gr.Blocks = None
device: str = None # Line 25
weight_load_location: str = None
xformers_available = False
# ...
Steps to reproduce the problem
- Go to modules/shared.py#L25.
- The error is here.
What should have happened?
The line should be:
device: torch.device = None
What browsers do you use to access the UI ?
Mozilla Firefox
Sysinfo
Not any more.
Console logs
Also Not Any more.
Additional information
No response