shikhr commited on
Commit
f5d45bf
1 Parent(s): 8204068

fix input bug

Browse files
Files changed (1) hide show
  1. mgpt_modelling.py +4 -4
mgpt_modelling.py CHANGED
@@ -10,8 +10,8 @@ class MusicModel(PreTrainedModel):
10
  super().__init__(config)
11
  self.model = GPT(config)
12
 
13
- def forward(self, inputs):
14
- return self.model(inputs)
15
 
16
- def generate(self, inputs):
17
- return self.model.generate(inputs)
 
10
  super().__init__(config)
11
  self.model = GPT(config)
12
 
13
+ def forward(self, *args, **kwargs):
14
+ return self.model(*args, **kwargs)
15
 
16
+ def generate(self, *args, **kwargs):
17
+ return self.model.generate(*args, **kwargs)