2023-05-10 API Fixes

 

  1. Pārliecināties, ka Mārča labojumi strādā un ir uzmanīgi uzstādīti uz production API - lai viņš tev izstāsta galvenās izmaiņas - tur ievērojamas izmaiņas audio_text un text_grammar

  2. Uzkodēt, ka worker_api.py piešķir by default mazāk noslogoto worker_uuid jau uzreiz tiklīdz izveido task

  3. Uzkodēt, ka var paralēli izpildīt features - tempo, emotions, energy

  4. Pārbaudīt, ka energy worker strādā un uzstādīt uz ubuntu@3.93.55.113 (aws-4) tas pats key kas citiem AWS (A10 GPU). Uzlikt arī citus workers, kuri bremzē processing

  5. Pievienot jaunu datu struktūru un python models, lai nodrošinātu, ka varam dot api pieeju tikai uz text_grammar, implementēt loģiku credits_words un credits_renewal_words ja tiek padoti requesti kā JSON ar {“text”: “word1 word2”}

    roles
    role_id: PK, SERIAL
    is_deleted: bool
    created: timestamp, now
    modified: timestamp, now
    role_name: unique, VARCHAR(64)
    roles_in_client
    roles_in_client_id: PK, SERIAL
    client_id: FK
    role_id: FK
    is_deleted: bool
    created: timestamp, now
    modified: timestamp, now
    clients
    ...
    credits_words
    credits_renewal_words