ysharma HF staff commited on
Commit
3c29761
·
1 Parent(s): 92ce956
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -3,7 +3,9 @@ import requests
3
 
4
  # GPT-J-6B API
5
  API_URL = "https://api-inference.huggingface.co/models/EleutherAI/gpt-j-6B"
6
- headers = {"Authorization": "Bearer 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"}
 
 
7
  prompt = """
8
  word: risk
9
  poem using word: And then the day came,
 
3
 
4
  # GPT-J-6B API
5
  API_URL = "https://api-inference.huggingface.co/models/EleutherAI/gpt-j-6B"
6
+ HF_TOKEN = os.environ["HF_TOKEN"]
7
+ headers = {"Authorization": f"Bearer {HF_TOKEN}"}
8
+ #headers = {"Authorization": "Bearer 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"}
9
  prompt = """
10
  word: risk
11
  poem using word: And then the day came,