clean up playground

Former-commit-id: a178953a6c
group-chat
Kye 1 year ago
parent bb971bcb25
commit ad544cf908

@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry] [tool.poetry]
name = "swarms" name = "swarms"
version = "1.7.6" version = "1.7.7"
description = "Swarms - Pytorch" description = "Swarms - Pytorch"
license = "MIT" license = "MIT"
authors = ["Kye Gomez <kye@apac.ai>"] authors = ["Kye Gomez <kye@apac.ai>"]

@ -49,7 +49,10 @@ class Mistral:
"""Run the model on a given task.""" """Run the model on a given task."""
try: try:
model_inputs = self.tokenizer([task], return_tensors="pt").to(self.device) model_inputs = self.tokenizer(
[task],
return_tensors="pt"
).to(self.device)
generated_ids = self.model.generate( generated_ids = self.model.generate(
**model_inputs, **model_inputs,
max_length=self.max_length, max_length=self.max_length,

Loading…
Cancel
Save