Update app.py
Browse files
app.py
CHANGED
@@ -46,6 +46,10 @@ model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud/',
|
|
46 |
custom_role_conversions=None,
|
47 |
)
|
48 |
|
|
|
|
|
|
|
|
|
49 |
|
50 |
# Import tool from Hub
|
51 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
|
|
46 |
custom_role_conversions=None,
|
47 |
)
|
48 |
|
49 |
+
import os
|
50 |
+
from smolagents import LiteLLMModel
|
51 |
+
model = LiteLLMModel(model_id="meta-llama/Llama-3.2-3B-Instruct")
|
52 |
+
# os.environ["HF_TOKEN"]="hf_xxxxxxxxxxx"
|
53 |
|
54 |
# Import tool from Hub
|
55 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|