Skip to main content

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

old: http://50.17.39.48:5601/

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

cliptu-0.1.0.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cliptu-0.1.0-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file cliptu-0.1.0.tar.gz.

File metadata

  • Download URL: cliptu-0.1.0.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

Hashes for cliptu-0.1.0.tar.gz
Algorithm Hash digest
SHA256 52fa137208f0b989e0cc56e19df70665fe1f7a5e2d98a45d3274e661882b6e47
MD5 cafb17ae2dcb9601a8708932f6452b01
BLAKE2b-256 106648ffd577b8999ebb54aa9b3a3c9ca2033ebf041f32e8ab847e8e56898db4

See more details on using hashes here.

File details

Details for the file cliptu-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cliptu-0.1.0-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

Hashes for cliptu-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d92adf469f5728d23e7f5db7b1071def3416a1935fcade1c717085a2a794a449
MD5 bf8b780ac01b04d78e1d98504bc88aff
BLAKE2b-256 9a8c539b1820c7b42a3c65a7c47ee89fe48d2c6d0448666a201f59ec63fcd269

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page