Skip to content

Commit

Permalink
remove async from helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
mitya52 committed May 21, 2024
1 parent 286aa0f commit 9e0ad6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion refact_webgui/webgui/tab_models_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async def _tab_host_models_get(self):
**self._model_assigner.model_assignment,
}, indent=4) + "\n")

async def _has_available_weights(self, model_name: str) -> bool:
def _has_available_weights(self, model_name: str) -> bool:
model_path = self._model_assigner.models_db[model_name]["model_path"]
return Path(f"models--{model_path.replace('/', '--')}").exists() or has_repo_access(model_path)

Expand Down

0 comments on commit 9e0ad6c

Please sign in to comment.