Closed kleywinn closed 2 months ago
lib/generate.py
replace this line:
self.classifier = pipeline("text-classification", model=f"{config['server']['agi_model_dir']}yuna-emotion")
With just: self.classifier = ""
pip3 install torch
python3.8
and pip3.8
to specify the version.File "/Users/kleywinn/Documents/yuna-ai/lib/generate.py", line 77, in generate
response_add = self.classifier(response)[0]['label']
TypeError: 'str' object is not callable
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
(better to use that for more features)emotions
in the static/config.json
?!Ok, I'll give it a try with Anaconda. I disabled emotions and it worked indeed! I'm closing this issue for now. Thanks for the assistance.
Hi I'm having a hard time running yuna-ai. This is the log I'm getting when running
python3 index.py
:It seems like torch is in the wrong version (from what I checked it's 2.2.2. And I'm using python 3.8.