Update app.py
Browse files
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")
|