justin-together commited on
Commit
036a7be
1 Parent(s): 379fba7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -56,6 +56,7 @@ def infer(
56
  }
57
  print(f"send: {datetime.now()}")
58
  headers = {
 
59
  'User-Agent': 'GPT-JT HuggingFace Space'
60
  }
61
  response = requests.get("https://staging.together.xyz/api/inference", params=my_post_dict, headers=headers).json()
 
56
  }
57
  print(f"send: {datetime.now()}")
58
  headers = {
59
+ 'Authorization': "Bearer " + st.secrets["TOGETHER_API_KEY"],
60
  'User-Agent': 'GPT-JT HuggingFace Space'
61
  }
62
  response = requests.get("https://staging.together.xyz/api/inference", params=my_post_dict, headers=headers).json()