Update app.py
Browse filesGot hugging face token
app.py
CHANGED
@@ -47,11 +47,12 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
47 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
48 |
try:
|
49 |
# agent = BasicAgent()
|
|
|
50 |
model = HfApiModel(
|
51 |
max_tokens=2096,
|
52 |
temperature=0.5,
|
53 |
-
|
54 |
-
model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
|
55 |
custom_role_conversions=None,
|
56 |
)
|
57 |
final_answer = FinalAnswerTool()
|
|
|
47 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
48 |
try:
|
49 |
# agent = BasicAgent()
|
50 |
+
hf_token = os.getenv('hf_token')
|
51 |
model = HfApiModel(
|
52 |
max_tokens=2096,
|
53 |
temperature=0.5,
|
54 |
+
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
55 |
+
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
|
56 |
custom_role_conversions=None,
|
57 |
)
|
58 |
final_answer = FinalAnswerTool()
|