aibmedia commited on
Commit
94aa5d9
·
verified ·
1 Parent(s): 321127c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -46,7 +46,7 @@ def server_one():
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)
 
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)