Closed sambickeita closed 1 year ago
Please, when opening an Issue follow the template, it helps us to understand a lot about your problem.
Try : python3 -m pip install -U langchain
should work .
for the moment we are still working on it, you will encounter other library problems, for example you will need pythorch audio and other libraries. We recommend that you use options 5 and 6 which are new as APIs.
Thank you all for your efforts and the time you dedicate to this project.
PS I:\GPT\PortableGit\PROJET FONCTIONNEL\Free-AUTO-GPT-with-NO-API-main - Copie> python .\TransformersAgent.py
Traceback (most recent call last):
File "I:\GPT\PortableGit\PROJET FONCTIONNEL\Free-AUTO-GPT-with-NO-API-main - Copie\TransformersAgent.py", line 1, in
line 28 is :
from transformers.tools.base import TASK_MAPPING, TOOL_CONFIG_FILE, Tool, load_tool, supports_remote
from transformers.utils import logging from transformers.tools.base import TASK_MAPPING, TOOL_CONFIG_FILE, Tool, load_tool, supports_remote from transformers.tools.prompts import CHAT_MESSAGE_PROMPT, CHAT_PROMPT_TEMPLATE, RUN_PROMPT_TEMPLATE from transformers.tools.python_interpreter import evaluate
I solved it.
Here is the step i did.
line 28 : in agents.py
from transformers.utils import logging from transformers import tools from transformers.tools.base import TASK_MAPPING, TOOL_CONFIG_FILE, Tool, load_tool, supports_remote from transformers.tools.prompts import CHAT_MESSAGE_PROMPT, CHAT_PROMPT_TEMPLATE, RUN_PROMPT_TEMPLATE from transformers.tools.python_interpreter import evaluate
after
PS I:\GPT\PortableGit\PROJET FONCTIONNEL\Free-AUTO-GPT-with-NO-API-main - Copie\hfAgent> python .\agents.py
Traceback (most recent call last):
File "I:\GPT\PortableGit\PROJET FONCTIONNEL\Free-AUTO-GPT-with-NO-API-main - Copie\hfAgent\agents.py", line 28, in
Requirement already satisfied: colorama in i:\programmes\python\lib\site-packages (from tqdm>=4.27->transformers) (0.4.6)
Requirement already satisfied: charset-normalizer<4,>=2 in i:\programmes\python\lib\site-packages (from requests->transformers) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in i:\programmes\python\lib\site-packages (from requests->transformers) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in i:\programmes\python\lib\site-packages (from requests->transformers) (1.26.13)
Requirement already satisfied: certifi>=2017.4.17 in i:\programmes\python\lib\site-packages (from requests->transformers) (2022.12.7)
Installing collected packages: transformers
Attempting uninstall: transformers
Found existing installation: transformers 4.25.1
Uninstalling transformers-4.25.1:
Successfully uninstalled transformers-4.25.1
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency
conflicts.
lmql 0.0.6.1 requires transformers==4.25.1, but you have transformers 4.29.1 which is incompatible.
Successfully installed transformers-4.29.1
PS I:\GPT\PortableGit\PROJET FONCTIONNEL\Free-AUTO-GPT-with-NO-API-main - Copie\hfAgent> python .\agents.py
PS I:\GPT\PortableGit\PROJET FONCTIONNEL\Free-AUTO-GPT-with-NO-API-main - Copie\hfAgent> cd ..
PS I:\GPT\PortableGit\PROJET FONCTIONNEL\Free-AUTO-GPT-with-NO-API-main - Copie> python .\TransformersAgent.py
Select the model you want to use (1, 2, 3, 4, 5, 6)
1) ChatGPT
2) HuggingChat (NOT GOOD RESULT)
3) BingChat (NOT GOOD RESULT)
4) BardChat
5) StarCoder
6) OpenAssistant