https://github.com/thefloatingstring/hack-ai-2023-backend
HackAI 2023 1st Place Overall Project. Story generation for educational purposes.
https://github.com/thefloatingstring/hack-ai-2023-backend
Last synced: 3 months ago
JSON representation
HackAI 2023 1st Place Overall Project. Story generation for educational purposes.
- Host: GitHub
- URL: https://github.com/thefloatingstring/hack-ai-2023-backend
- Owner: TheFloatingString
- Created: 2023-06-16T22:51:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-18T19:28:55.000Z (over 2 years ago)
- Last Synced: 2025-03-02T21:16:51.098Z (11 months ago)
- Language: Python
- Homepage:
- Size: 26.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# backend
To install dependencies:
```bash
pip install -r requirements.txt
```
Environment variables:
```
set OPENAI_API_KEY='X'
```
To run:
```bash
python main.py
```
Sample request:
```curl
curl -XPOST http://127.0.0.1:8000/api/story -d "{\"name\": \"Bao\", \"modifier\": \"x\", \"narration\": \"x\", \"topic\": \"what is energy?\", \"character_environment\":\"Harry Potter universe\"}" -H "Content-type: application/json"
```
Go to port `8000`