Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 01bb624

Browse files
committed
fix a typo
1 parent 63d76a1 commit 01bb624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchchat/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ def __init__(self, config, path) -> None:
784784
# TODO: remove the hacky way once get rid of model.model
785785
try:
786786
text_transformer_config = TransformerArgs.from_params(self.config.transformer_args["text"])
787-
else:
787+
except:
788788
text_transformer_config = None
789789
self.model = type('model', (), {'config': text_transformer_config})
790790

0 commit comments

Comments
 (0)