atishayj281 commited on
Commit
8b852aa
1 Parent(s): f0dc6f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import requests
3
  import os
4
  SECRET_TOKEN = os.getenv("SECRET_TOKEN")
5
  API_URL = "https://api-inference.huggingface.co/models/ProsusAI/finbert"
6
- headers = {"Authorization": f:"Bearer {SECRET_TOKEN}"}
7
 
8
  def show_plot(bot_response):
9
  scores = {label_info['label']: label_info['score'] for label_info in bot_response}
 
3
  import os
4
  SECRET_TOKEN = os.getenv("SECRET_TOKEN")
5
  API_URL = "https://api-inference.huggingface.co/models/ProsusAI/finbert"
6
+ headers = {"Authorization": "Bearer " + SECRET_TOKEN}
7
 
8
  def show_plot(bot_response):
9
  scores = {label_info['label']: label_info['score'] for label_info in bot_response}