sasha HF staff commited on
Commit
b373ea6
1 Parent(s): 0e6d60d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -2,6 +2,10 @@ import gradio as gr
2
  from datasets import load_dataset
3
  from sentence_transformers import SentenceTransformer
4
 
 
 
 
 
5
  model = SentenceTransformer('clip-ViT-B-32')
6
 
7
  # Candidate images.
 
2
  from datasets import load_dataset
3
  from sentence_transformers import SentenceTransformer
4
 
5
+ import os
6
+ import requests
7
+ os.environ['NO_PROXY'] = 'huggingface.co'
8
+
9
  model = SentenceTransformer('clip-ViT-B-32')
10
 
11
  # Candidate images.