Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,12 +12,12 @@ try:
|
|
| 12 |
)
|
| 13 |
tools = mcp_client.get_tools()
|
| 14 |
|
| 15 |
-
model = InferenceClientModel(token=os.getenv("HUGGINGFACE_API_TOKEN"))
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
agent = CodeAgent(tools=[*tools], model=model)
|
| 22 |
|
| 23 |
demo = gr.ChatInterface(
|
|
|
|
| 12 |
)
|
| 13 |
tools = mcp_client.get_tools()
|
| 14 |
|
| 15 |
+
# model = InferenceClientModel(token=os.getenv("HUGGINGFACE_API_TOKEN"))
|
| 16 |
+
model = LiteLLMModel(
|
| 17 |
+
model_id="gemini/gemini-2.5-flash-preview-05-20", # Gemini model name for LiteLLM
|
| 18 |
+
temperature=0.2,
|
| 19 |
+
api_key=os.environ["GOOGLE_API_KEY"] # Must have access to Gemini via Vertex AI
|
| 20 |
+
)
|
| 21 |
agent = CodeAgent(tools=[*tools], model=model)
|
| 22 |
|
| 23 |
demo = gr.ChatInterface(
|