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.1.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.1-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

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

Hashes for cliptu-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3462ab68879f0b167db81b8e8eb29c0609b84aa12e9984d97a68e6ecc94ee609
MD5 60fc745f1c2a6849914252584b69c638
BLAKE2b-256 b0dcb95c46ea7f7ff57bb9959b42e3fbaf9717743166ef466cde99a663275b7a

See more details on using hashes here.

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

Hashes for cliptu-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 15814e0255e1ff1bc2e070c9b519bcada984f012e72d5fefe64e865a63d5104c
MD5 8dbd8a06252f46cadcf7c0e07f9b08a1
BLAKE2b-256 bb2a8b177f98a81f78474cc111a474e5575a5981d066a7ca4c1fceb05f033b8b

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