Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/engageintellect/ai-stock-prediction

Future stock price predition using a regression neural-network
https://github.com/engageintellect/ai-stock-prediction

chatgpt daisyui fastapi neural-network openai python svelte sveltekit tailwindcss tensorflow yfinance

Last synced: about 2 months ago
JSON representation

Future stock price predition using a regression neural-network

Awesome Lists containing this project

README

        

**WIP**

# python-gpt

## Getting Started
Clone Repository (or use the template to create your own repository)
```
git clone https://github.com/engageintellect/python-gpt.git
```

### Setup Environment

Create a config file for your OpenAI API key
```
sudo nvim /etc/python-gpt.json
```
It should look something like this:
```
{
"OPENAI_API_KEY": ""
}
```

Now, create a virtual environment and install the requirements
```
cd python-gpt
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```

### Run
Start your server
```
uvircorn main:app --reload
```

### Test
Test your api in your terminal with curl
```
curl -X POST -H "Content-Type: application/json" -d '{"message": "Hello, ChatGPT!"}' http://localhost:8000/chat
```