Skip to content

Commit

Permalink
fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
monorimet committed Dec 18, 2023
1 parent 5813043 commit 59153b2
Show file tree
Hide file tree
Showing 7 changed files with 134 additions and 99 deletions.
9 changes: 5 additions & 4 deletions apps/shark_studio/api/initializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

from apps.shark_studio.modules.timer import startup_timer
from apps.shark_studio.web.utils.tmp_configs import (
config_tmp,
clear_tmp_mlir,
clear_tmp_imgs,
)
config_tmp,
clear_tmp_mlir,
clear_tmp_imgs,
)


def imports():
Expand Down Expand Up @@ -57,6 +57,7 @@ def initialize():
from apps.shark_studio.web.utils.file_utils import (
create_checkpoint_folders,
)

# Create custom models folders if they don't exist
create_checkpoint_folders()

Expand Down
3 changes: 2 additions & 1 deletion apps/shark_studio/api/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def __init__(
self.use_system_prompt = use_system_prompt
self.global_iter = 0
if os.path.exists(self.vmfb_name) and (
external_weights is None or os.path.exists(str(self.external_weight_file))
external_weights is None
or os.path.exists(str(self.external_weight_file))
):
self.iree_module_dict = dict()
(
Expand Down
Loading

0 comments on commit 59153b2

Please sign in to comment.