Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ import datetime
|
|
3 |
import requests
|
4 |
import pytz
|
5 |
import yaml
|
6 |
-
import os
|
7 |
from tools.final_answer import FinalAnswerTool
|
8 |
|
9 |
from Gradio_UI import GradioUI
|
@@ -60,11 +59,11 @@ final_answer = FinalAnswerTool()
|
|
60 |
model = HfApiModel(
|
61 |
max_tokens=2096,
|
62 |
temperature=0.5,
|
63 |
-
model_id='
|
64 |
-
token=os.getenv("HF_TOKEN"),
|
65 |
custom_role_conversions=None,
|
66 |
)
|
67 |
|
|
|
68 |
|
69 |
# Import tool from Hub
|
70 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
|
|
3 |
import requests
|
4 |
import pytz
|
5 |
import yaml
|
|
|
6 |
from tools.final_answer import FinalAnswerTool
|
7 |
|
8 |
from Gradio_UI import GradioUI
|
|
|
59 |
model = HfApiModel(
|
60 |
max_tokens=2096,
|
61 |
temperature=0.5,
|
62 |
+
model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
|
|
|
63 |
custom_role_conversions=None,
|
64 |
)
|
65 |
|
66 |
+
model = LiteLLMModel(model_id="gemini/gemini-2.0-flash-lite", api_key=os.getenv(key="AIzaSyB_QTuznTSXCMfY8l3YYfAn5sYyiHktVR8"))
|
67 |
|
68 |
# Import tool from Hub
|
69 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|