Spaces:
Runtime error
Runtime error
# Rubiklab Talkback environment | |
_If you're a power user, stop reading and start wasting your time.._ | |
# Get started | |
## Installation | |
```bash | |
pip install -r requirements.txt | |
``` | |
## Make sure you have your .env file based on .env.example | |
```ini | |
# custom formatting sources | |
GRADIO_CSS=http://localhost:8001/assets/gradio_app.css | |
GRADIO_JS=http://localhost:8001/assets/gradio_app.js | |
# this is the rubiklab backend (on prod: https://api.rubiklab.ai) | |
RUBIK_BACKEND=http://localhost:8001/api/talkback | |
``` | |
## How to start | |
To make everything work, you need to make sure all the below services are up-to-date, the .env file contains the correct paths, and everything is running: | |
- API backend | |
- Flask data uploader (part of this repository) | |
--- | |
### Launch the app [DEV] | |
1. `gradio gradio_app.py app` | |
2. `cd uploader && python uploadapi.py` | |
If backend is not started yet: | |
Navigate to the Rubiklab backend, and.. | |
`php artisan serve --port=8001` | |
--- | |
### Launch the app [PROD] | |
1. `cd /var/www/talkback` | |
2. `sh prod.sh` | |
3. now just wait a few sec.. and done | |