DS-20202 commited on
Commit
2d1a91b
·
1 Parent(s): ad47b8d

Updating requirement

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,6 +24,8 @@ def load_glove(path):
24
 
25
  return wv, w2i, vocab
26
 
 
 
27
 
28
  original_wv, original_w2i, original_vocab = load_glove('glove_300d.txt')
29
  wv_debiased, w2i_debiased, vocab_debiased = load_glove('glove_debiased_300d.txt')
@@ -55,6 +57,4 @@ demo = gr.Interface(
55
  description = '<a href="https://arxiv.org/abs/2103.00453">Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLP</a>'
56
  )
57
  if __name__ == '__main__':
58
- urllib.request.urlretrieve("https://cdn-lfs.huggingface.co/repos/51/d0/51d02f0735de2187e78af7db593c8d71efbcddfe9f5e45cfa1c77904daf0dfdf/20dac974c73413d4b4f463f9b28eabfb326793d2732c108a9cd1262f2a055dc3?response-content-disposition=attachment%3B%20filename%3D%22glove_debiased_300d.txt%22", "glove_debiased_300d.txt")
59
- urllib.request.urlretrieve("https://cdn-lfs.huggingface.co/repos/51/d0/51d02f0735de2187e78af7db593c8d71efbcddfe9f5e45cfa1c77904daf0dfdf/91125602f730fea7ca768736c6f442e668b49db095682bf2aad375db061c21ed?response-content-disposition=attachment%3B%20filename%3D%22glove.6B.300d.txt%222", "glove_300d.txt")
60
  demo.launch()
 
24
 
25
  return wv, w2i, vocab
26
 
27
+ urllib.request.urlretrieve("https://cdn-lfs.huggingface.co/repos/51/d0/51d02f0735de2187e78af7db593c8d71efbcddfe9f5e45cfa1c77904daf0dfdf/20dac974c73413d4b4f463f9b28eabfb326793d2732c108a9cd1262f2a055dc3?response-content-disposition=attachment%3B%20filename%3D%22glove_debiased_300d.txt%22", "glove_debiased_300d.txt")
28
+ urllib.request.urlretrieve("https://cdn-lfs.huggingface.co/repos/51/d0/51d02f0735de2187e78af7db593c8d71efbcddfe9f5e45cfa1c77904daf0dfdf/91125602f730fea7ca768736c6f442e668b49db095682bf2aad375db061c21ed?response-content-disposition=attachment%3B%20filename%3D%22glove.6B.300d.txt%222", "glove_300d.txt")
29
 
30
  original_wv, original_w2i, original_vocab = load_glove('glove_300d.txt')
31
  wv_debiased, w2i_debiased, vocab_debiased = load_glove('glove_debiased_300d.txt')
 
57
  description = '<a href="https://arxiv.org/abs/2103.00453">Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLP</a>'
58
  )
59
  if __name__ == '__main__':
 
 
60
  demo.launch()