Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Update chat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyouga committed Jul 18, 2023
1 parent 162cc53 commit d4d6250
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/glmtuner/webui/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@

class WebChatModel(ChatModel):

def __init__(self):
def __init__(self, *args):
self.model = None
self.tokenizer = None
self.generating_args = GeneratingArguments()
if len(args) != 0:
super().__init__(*args)

def load_model(
self,
Expand Down

0 comments on commit d4d6250

Please sign in to comment.