Kyleshechtman commited on
Commit
f0564d8
·
verified ·
1 Parent(s): 30e3492

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -71,12 +71,14 @@ final_answer = FinalAnswerTool()
71
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
72
 
73
  model = LiteLLMModel(
74
- model_id="qwen2:7b", # Ollama strips "ollama_chat/"
75
- api_base="http://127.0.0.1:11434",
 
76
  num_ctx=8192,
77
  )
78
 
79
 
 
80
  # Import tool from Hub
81
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
82
 
 
71
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
72
 
73
  model = LiteLLMModel(
74
+ model_id="qwen2:7b",
75
+ api_base="http://localhost:11434", # Or 127.0.0.1
76
+ model_provider="ollama", # 👈 THIS is the key fix!
77
  num_ctx=8192,
78
  )
79
 
80
 
81
+
82
  # Import tool from Hub
83
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
84