Chris4K commited on
Commit
d64dd5c
·
verified ·
1 Parent(s): 45f17fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -124,6 +124,7 @@ class CustomHfAgent(Agent):
124
 
125
  # Use CustomHfAgent in your code
126
  agent = CustomHfAgent("https://api-inference.huggingface.co/models/bigcode/starcoder")
 
127
  #agent.token = "Bearer xxx"
128
  #print(agent.token)
129
  #agent.run("Answer the following question", question ="what is the capitol of the usa?", context="The capitol of the usa is London")
 
124
 
125
  # Use CustomHfAgent in your code
126
  agent = CustomHfAgent("https://api-inference.huggingface.co/models/bigcode/starcoder")
127
+ agent.token = os.environ['HF_token']
128
  #agent.token = "Bearer xxx"
129
  #print(agent.token)
130
  #agent.run("Answer the following question", question ="what is the capitol of the usa?", context="The capitol of the usa is London")