Spaces:
Sleeping
Sleeping
Commit
·
09a5207
1
Parent(s):
15b9aa6
Upload app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
#!/usr/bin/env python3
|
2 |
from doctest import OutputChecker
|
3 |
import sys
|
4 |
-
|
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 |
-
|
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')
|