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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -124,7 +124,16 @@ class CustomHfAgent(Agent):
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")
 
124
 
125
  # Use CustomHfAgent in your code
126
  agent = CustomHfAgent("https://api-inference.huggingface.co/models/bigcode/starcoder")
127
+ print("-----")
128
+ print(agent.token)
129
+
130
+ print("-----")
131
  agent.token = os.environ['HF_token']
132
+ print("-----")
133
+ print(agent.token)
134
+
135
+ print("-----")
136
+
137
  #agent.token = "Bearer xxx"
138
  #print(agent.token)
139
  #agent.run("Answer the following question", question ="what is the capitol of the usa?", context="The capitol of the usa is London")