AhmedSSabir commited on
Commit
09a5207
·
1 Parent(s): 15b9aa6

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  #!/usr/bin/env python3
2
  from doctest import OutputChecker
3
  import sys
4
- #import torch
5
  import re
6
  import os
7
  import gradio as gr
@@ -17,7 +17,7 @@ from sentence_transformers import SentenceTransformer, util
17
  #from sentence_transformers import SentenceTransformer, util
18
  #from sklearn.metrics.pairwise import cosine_similarity
19
 
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')
 
1
  #!/usr/bin/env python3
2
  from doctest import OutputChecker
3
  import sys
4
+ import torch
5
  import re
6
  import os
7
  import gradio as gr
 
17
  #from sentence_transformers import SentenceTransformer, util
18
  #from sklearn.metrics.pairwise import cosine_similarity
19
 
20
+
21
  #model_sts = gr.Interface.load('huggingface/sentence-transformers/stsb-distilbert-base')
22
 
23
  model_sts = SentenceTransformer('stsb-distilbert-base')