Spaces:
Build error
Build error
metadata
title: AI Stock Price Assistant
emoji: π
colorFrom: blue
colorTo: green
sdk: docker
pinned: false
AI Stock Price Assistant π
A real-time stock price and share calculator powered by ChatGPT and Yahoo Finance.
Features
- π Get real-time stock prices for any ticker
- π° Calculate how many shares you can buy with a specific amount
- π¬ Natural language understanding (e.g., "What's Apple's stock price?")
- π§ Context-aware conversations (remembers previous stocks discussed)
- π Support for all major stock exchanges
Examples
Check stock prices:
AAPL What's the price of Microsoft? Show me GOOGLCalculate shares:
How many AAPL shares can I buy with $10000? What can I get of Tesla for $5000?Context-aware queries:
MSFT How many shares for $20000? What about $30000?
Technical Details
- Built with Chainlit for the chat interface
- Uses LangChain for natural language processing
- Real-time data from Yahoo Finance
- OpenAI GPT-4 for natural language understanding
Environment Variables
You need to set up the following environment variables:
OPENAI_API_KEY=your-api-key-here
Local Development
- Clone the repository
- Install dependencies:
pip install -r requirements.txt - Set up your .env file with your OpenAI API key
- Run the app:
chainlit run app.py
Deployment
This app is deployed on Hugging Face Spaces. You can find it at: https://huggingface.co/spaces/Shipmaster1/AI_Stock_Agent
License
MIT License - feel free to use and modify!