Spaces:
Runtime error
Runtime error
Update app.py
Browse files202 unmodified lines203204205206207208209202 unmodified linesdef predict_tokens(self, batch, seed=0):"""从预处理的数据集批次中预测 tokens。"""print(f"[{current_time()}] 运行:从预处理数据集中预测音符序列")prediction, _ = self._predict_fn(self._train_state.params, batch, jax.random.PRNGKey(seed))return self.vocabulary.decode_tf(prediction).numpy()202 unmodified lines203204205206207208209202 unmodified linesdef predict_tokens(self, batch, seed=0):"""从预处理的数据集批次中预测 tokens。"""print(f"[{current_time()}] 运行:从预处理数据集中预测音符序列 (种子:{seed})")prediction, _ = self._predict_fn(self._train_state.params, batch, jax.random.PRNGKey(seed))return self.vocabulary.decode_tf(prediction).numpy()
app.py+1-1