https://github.com/princep/didactic-octo-spork
https://github.com/princep/didactic-octo-spork
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/princep/didactic-octo-spork
- Owner: PrinceP
- Created: 2024-07-26T16:46:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-27T06:16:41.000Z (almost 2 years ago)
- Last Synced: 2026-01-21T23:38:54.818Z (5 months ago)
- Language: Python
- Size: 413 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Whisper Text AI
## Nginx for AWS[Optional]
To enable other source to access our ubuntu instance, we need to configure Nginx.
```sh
sudo apt install nginx
```
By default, Nginx contains one server block called default. You can find it in this location: etc/nginx/sites-enabled.
Now at your root, run
```sh
cd /etc/nginx/sites-enabled/
sudo vim fastapi_nginx
```
>> Note: You should change server_name to your instance Public IPv4 address.
```json
server {
listen 80;
server_name 13.60.40.19;
location / {
proxy_pass http://127.0.0.1:8000;
}
}
```
Start Nginx server:
```sh
sudo service nginx restart
```
## Docker build
```sh
./scripts/build_docker.sh
```
## Deployment
```sh
sudo docker run -d -p 8000:8000 xxxx/whisperer:my-ai-app_1.0.1
```
## Sample payload for /call
```json
{
"method": "whisperit",
"payload": {
"data_s3": "s3://for-whisper-files/jfk.mp3"
}
```