nickzf commited on
Commit
ccf8086
·
verified ·
1 Parent(s): 7d17083

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
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)