Spaces:
Sleeping
Sleeping
using quick fix endpoint with HfApiModel
Browse files
app.py
CHANGED
@@ -36,13 +36,13 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
36 |
|
37 |
|
38 |
final_answer = FinalAnswerTool()
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
model = InferenceClient("https://jc26mwg228mkj8dw.us-east-1.aws.endpoints.huggingface.cloud/")
|
46 |
|
47 |
# Import tool from Hub
|
48 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
|
|
36 |
|
37 |
|
38 |
final_answer = FinalAnswerTool()
|
39 |
+
model = HfApiModel(
|
40 |
+
max_tokens=2096,
|
41 |
+
temperature=0.5,
|
42 |
+
model_id="https://jc26mwg228mkj8dw.us-east-1.aws.endpoints.huggingface.cloud/",
|
43 |
+
custom_role_conversions=None,
|
44 |
+
)
|
45 |
+
#model = InferenceClient("https://jc26mwg228mkj8dw.us-east-1.aws.endpoints.huggingface.cloud/")
|
46 |
|
47 |
# Import tool from Hub
|
48 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|