AhmedSSabir commited on
Commit
807cc13
1 Parent(s): 5a855e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,8 +20,8 @@ from sentence_transformers import SentenceTransformer, util
20
  #device = "cuda:0" if torch.cuda.is_available() else "cpu"
21
  #model_sts = gr.Interface.load('huggingface/sentence-transformers/stsb-distilbert-base')
22
 
23
- #model_sts = SentenceTransformer('stsb-distilbert-base')
24
- model_sts = SentenceTransformer('roberta-large-nli-stsb-mean-tokens')
25
 
26
  #batch_size = 1
27
  #scorer = LMScorer.from_pretrained('gpt2' , device=device, batch_size=batch_size)
 
20
  #device = "cuda:0" if torch.cuda.is_available() else "cpu"
21
  #model_sts = gr.Interface.load('huggingface/sentence-transformers/stsb-distilbert-base')
22
 
23
+ model_sts = SentenceTransformer('stsb-distilbert-base')
24
+ #model_sts = SentenceTransformer('roberta-large-nli-stsb-mean-tokens')
25
 
26
  #batch_size = 1
27
  #scorer = LMScorer.from_pretrained('gpt2' , device=device, batch_size=batch_size)