File size: 1,058 Bytes
a987248
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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