Voucher-Bot / agent_setup.py

Commit History

Fix HfApiModel import error by reverting to LiteLLMModel - HfApiModel is not available in Space smolagents version - Using LiteLLMModel with huggingface/Qwen/Qwen2.5-Coder-32B-Instruct which should work with HF_TOKEN in Space environment
719b2e8

Raj718 commited on

Fix runtime error by switching from TransformersModel to HfApiModel - HfApiModel uses HuggingFace inference API which should work in Space environment - Removed unnecessary transformers and torch dependencies - Updated model configuration for Qwen/Qwen2.5-Coder-32B-Instruct via HfApiModel
63ddd77

Raj718 commited on

Fix TransformersModel compatibility by switching from DialoGPT to GPT-2 - GPT-2 is a standard causal language model that should work better with smolagents TransformersModel - This resolves the AutoModelForImageTextToText error and accelerate requirement
e0d0404

Raj718 commited on

Update agent model to TransformersModel for local testing and add comprehensive test suite - Switched from LiteLLMModel to TransformersModel for conversational agent - Added transformers, torch, and accelerate dependencies - Created test_gradio_app.py for comprehensive Gradio testing - Agent orchestration fully functional with memory management, tool integration, and error handling
c93aaa7

Raj718 commited on

Fix OpenAI API key error by switching from OpenAIServerModel to LiteLLMModel for Gemini integration
274b52f

Raj718 commited on

Initial commit: NYC Voucher Housing Navigator
dbaeeae

Raj718 commited on