Spaces:
Running
Running
Commit
·
869ec66
1
Parent(s):
06e0899
update
Browse files
app.py
CHANGED
@@ -27,15 +27,16 @@ account_sid = os.getenv('twillo_sid')
|
|
27 |
auth_token = os.getenv('twillo_token')
|
28 |
|
29 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
#
|
37 |
-
|
38 |
-
|
|
|
39 |
# Import tool from Hub
|
40 |
# image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
41 |
|
|
|
27 |
auth_token = os.getenv('twillo_token')
|
28 |
|
29 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
30 |
+
model = HfApiModel(
|
31 |
+
max_tokens=2096,
|
32 |
+
temperature=0.5,
|
33 |
+
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
|
34 |
+
token = os.getenv('HF_TOKEN'),
|
35 |
+
#model_id=model_id,
|
36 |
+
# it is possible that this model may be overloaded
|
37 |
+
custom_role_conversions=None,
|
38 |
+
#)
|
39 |
+
#model = LiteLLMModel(model_id="anthropic/claude-3-5-sonnet-latest", temperature=0.2, max_tokens=10)
|
40 |
# Import tool from Hub
|
41 |
# image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
42 |
|