Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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",
|
| 75 |
-
api_base="http://127.0.0.1
|
|
|
|
| 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 |
|