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

Trying to run the webserver fails with module 'textattack.commands' has no attribute 'attack' #7

Open
ChatBotMatt opened this issue Sep 21, 2022 · 2 comments

Comments

@ChatBotMatt
Copy link

As title says.

I'm using Python 3.10.4 and running python manae.py runserver after doing the installation of all of the requirements.

@zhy605420954
Copy link

I also meet this problem
Do you know how to solve it?

@Idris-MAROUF
Copy link

Change the content of the \TextAttack-WebDemo\webdemo\config.py file to this:

import textattack

MODELS = textattack.dataset_args.HUGGINGFACE_DATASET_BY_MODEL
ATTACK_RECIPES = textattack.attack_args.ATTACK_RECIPE_NAMES
HIDDEN_ATTACK_RECIPES = ['alzantot', 'seq2sick', 'hotflip']

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

3 participants