Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: TextInputSequence must be str #42

Open
Wangrulin-1128 opened this issue Sep 4, 2023 · 2 comments
Open

TypeError: TextInputSequence must be str #42

Wangrulin-1128 opened this issue Sep 4, 2023 · 2 comments

Comments

@Wangrulin-1128
Copy link

I run the code of RE , meeting this problem "TypeError: TextInputSequence must be str". How can I solve it?
thanks

@Pxtri2156
Copy link

I met same problem when run question-answering. :((

@Pxtri2156
Copy link

I fixed the error by creating a new environment with python3.7. To begin, I had a conda environment with python 3.11 and pytorch 2.0, then not compatible with the requirement "transformers == 3.0.0", so I installed transformers 4.33, I thought that was a problem. Thus, I created a new environment with python 3.7 that can install "transformers == 3.0.0". This is my solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants