kumar9 commited on
Commit
c5b5ab3
1 Parent(s): f668076

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -15,7 +15,7 @@ app = Flask(__name__)
15
 
16
 
17
  headers = {"Authorization": f"Bearer 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"}
18
- API_URL = "https://api-inference.huggingface.co/models/nlptown/bert-base-multilingual-uncased-sentiment"
19
  def query(payload):
20
  response = requests.post(API_URL, headers=headers, json=payload)
21
  return response.json()
 
15
 
16
 
17
  headers = {"Authorization": f"Bearer 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"}
18
+ API_URL = "https://api-inference.huggingface.co/models/ProsusAI/finbert"
19
  def query(payload):
20
  response = requests.post(API_URL, headers=headers, json=payload)
21
  return response.json()