No project description provided
Project description
Run
Prod
cd backend/server
pm2 start 'python3 -m flask run --host=0.0.0.0 --port=5000 --debug' --name cliptu_flask_prod
Our frontend is hosted on Cloudfront and it has its VITE_API_HOST set to Cloudfront too, which means cliptu.com makes requests to, for instance: https://d1dz5nvm9j4qsc.cloudfront.net/api/search_text_audio?search_phrase=hey%20jamie&channel=TheJoeRoganExperience
Dev
cd backend/server
pm2 start 'python3 -m flask run --host=0.0.0.0 --port=8080 --debug' --name cliptu_flask_dev
Run frontend on 3000
python version
faster-whisper requires cttranslate2 which does not yet support python 3.13 so we are using 3.12
I could use 3.13 for prototyping in the test folder. Maybe for the server too?
I should be able to develop on front and deploy spots when I run process_channels?
ElasticSearch
new (working): http://54.242.127.229:5601/ user: elastic password: Qcq_h+10MBmO78Y-ncu9
Accessing Kibana (webui)
Sometimes navigating to kibana will hang, vs if things are really wrong the browser will just get a bad web page error or something.
Troubleshooting connectivity issues
I don't think curling from localhost works with security enabled, even with the -u. Might need certs.
However, we can shut off security for testing sake.
ubuntu@ip-172-31-30-221:~$ curl -u elastic:qcq_h+10mbmo78y-ncu9 -x get "http://localhost:9200/" curl: (52) Empty reply from server
in /etc/elasticsearch/elasticsearch.yml: set xpack.security.enabled: false
xpack.security.transport.ssl: enabled: false
curl -u elastic:qcq_h+10mbmo78y-ncu9 -x get "http://localhost:9200/"
{ "name" : "ip-172-31-30-221", "cluster_name" : "elasticsearch", "cluster_uuid" : "sNW5mx0ISdCdJT8T_M47rg", "version" : { "number" : "8.12.2", "build_flavor" : "default", "build_type" : "deb", "build_hash" : "48a287ab9497e852de30327444b0809e55d46466", "build_date" : "2024-02-19T10:04:32.774273190Z", "build_snapshot" : false, "lucene_version" : "9.9.2", "minimum_wire_compatibility_version" : "7.17.0", "minimum_index_compatibility_version" : "7.0.0" }, "tagline" : "You Know, for Search" }
Install Backend package
From project root:
poetry build
pip install -e .
ElasticSearch
Credentials
http://50.17.39.48:5601/ user: elastic
Delete transcriptions, from web
POST /transcriptions/_delete_by_query { "query": { "term": { "channel.keyword": "GMHikaru" } } }
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cliptu-0.1.1.tar.gz.
File metadata
- Download URL: cliptu-0.1.1.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3462ab68879f0b167db81b8e8eb29c0609b84aa12e9984d97a68e6ecc94ee609
|
|
| MD5 |
60fc745f1c2a6849914252584b69c638
|
|
| BLAKE2b-256 |
b0dcb95c46ea7f7ff57bb9959b42e3fbaf9717743166ef466cde99a663275b7a
|
File details
Details for the file cliptu-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cliptu-0.1.1-py3-none-any.whl
- Upload date:
- Size: 24.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15814e0255e1ff1bc2e070c9b519bcada984f012e72d5fefe64e865a63d5104c
|
|
| MD5 |
8dbd8a06252f46cadcf7c0e07f9b08a1
|
|
| BLAKE2b-256 |
bb2a8b177f98a81f78474cc111a474e5575a5981d066a7ca4c1fceb05f033b8b
|