Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -46,7 +46,7 @@ def server_one():
|
|
46 |
@app.route('/findsimilarity')
|
47 |
def server_1():
|
48 |
|
49 |
-
response = os.system(
|
50 |
time.sleep(3)
|
51 |
|
52 |
return str(response)
|
|
|
46 |
@app.route('/findsimilarity')
|
47 |
def server_1():
|
48 |
|
49 |
+
response = os.system(" curl https://api-inference.huggingface.co/models/sentence-transformers/all-MiniLM-L6-v2 -X POST -d '{ "inputs": { "source_sentence": "That is a happy person", "sentences": [ "That is a happy dog", "That is a very happy person", "Today is a sunny day" , ] } , } ' -H 'Content-Type: application/json' -H 'Authorization: `+bearer+`' " )
|
50 |
time.sleep(3)
|
51 |
|
52 |
return str(response)
|