Spaces:
Sleeping
Sleeping
Update general_bias_measurement.py
Browse files
general_bias_measurement.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
from itertools import chain
|
2 |
|
3 |
import torch
|
|
|
|
|
4 |
from transformers import BlipProcessor, BlipForConditionalGeneration
|
5 |
from transformers import CLIPProcessor, CLIPModel
|
6 |
from nltk.corpus import wordnet
|
|
|
1 |
from itertools import chain
|
2 |
|
3 |
import torch
|
4 |
+
import nltk
|
5 |
+
nltk.download('wordnet')
|
6 |
from transformers import BlipProcessor, BlipForConditionalGeneration
|
7 |
from transformers import CLIPProcessor, CLIPModel
|
8 |
from nltk.corpus import wordnet
|