Spaces:
Runtime error
Runtime error
Changing model_id
Browse files
app.py
CHANGED
@@ -47,11 +47,13 @@ final_answer = FinalAnswerTool()
|
|
47 |
model = HfApiModel(
|
48 |
max_tokens=2096,
|
49 |
temperature=0.5,
|
50 |
-
model_id='https://wxknx1kg971u7k1n.us-east-1.aws.endpoints.huggingface.cloud',# it is possible that this model may be overloaded
|
|
|
51 |
custom_role_conversions=None,
|
52 |
)
|
53 |
|
54 |
|
|
|
55 |
# Import tool from Hub
|
56 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
57 |
|
|
|
47 |
model = HfApiModel(
|
48 |
max_tokens=2096,
|
49 |
temperature=0.5,
|
50 |
+
#model_id='https://wxknx1kg971u7k1n.us-east-1.aws.endpoints.huggingface.cloud',# it is possible that this model may be overloaded
|
51 |
+
model_id="https://jc26mwg228mkj8dw.us-east-1.aws.endpoints.huggingface.cloud",
|
52 |
custom_role_conversions=None,
|
53 |
)
|
54 |
|
55 |
|
56 |
+
|
57 |
# Import tool from Hub
|
58 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
59 |
|