Git Product home page Git Product logo

whisperx-fastapi's People

Contributors

pavelzbornik avatar wosel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

whisperx-fastapi's Issues

Exception for endpoint /transcription_status/[taskId]

[2023-12-09 22:06:59 +0000] [7] [INFO] Application startup complete.
[2023-12-09 22:16:26 +0000] [7] [ERROR] Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/fastapi/applications.py", line 1106, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.11/dist-packages/starlette/applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.11/dist-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/usr/local/lib/python3.11/dist-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.11/dist-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/usr/local/lib/python3.11/dist-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/usr/local/lib/python3.11/dist-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
    raise e
  File "/usr/local/lib/python3.11/dist-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.11/dist-packages/starlette/routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.11/dist-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.11/dist-packages/starlette/routing.py", line 66, in app
    response = await func(request)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/fastapi/routing.py", line 292, in app
    content = await serialize_response(
              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/fastapi/routing.py", line 155, in serialize_response
    raise ResponseValidationError(
fastapi.exceptions.ResponseValidationError: 97 validation errors:
  {'type': 'list_type', 'loc': ('response', 'result', 'list[DiarizationSegment]'), 'msg': 'Input should be a valid list', 'input': {'segments': [{'start': 0.009, 'end': 15.274, 'text': ' Krasný dobrý den,…….

Model as env variable

Hey, i was just looking for an whisperx fastapi implementation and found your fresh project just 4 hours after your first commit 😄

Could you set the default model as an env variable, so i don't have to replace the line in my Dockerfile?

Thanks 👍

Allow more task parameters (mostly whisperX params)

Allow to configure (per task) :

[--device DEVICE]
[--device_index DEVICE_INDEX]
[--batch_size BATCH_SIZE]
[--compute_type {float16,float32,int8}]
[--align_model ALIGN_MODEL] 
[--interpolate_method {nearest,linear,ignore}] 
[--no_align] 
[--return_char_alignments] 
[--vad_onset VAD_ONSET]                
[--vad_offset VAD_OFFSET] 
[--chunk_size CHUNK_SIZE] 
[--diarize] 
[--min_speakers MIN_SPEAKERS] 
[--max_speakers MAX_SPEAKERS] 
[--temperature TEMPERATURE]
[--best_of BEST_OF] 
[--beam_size BEAM_SIZE] 
[--patience PATIENCE] 
[--length_penalty LENGTH_PENALTY] 
[--suppress_tokens SUPPRESS_TOKENS]
[--suppress_numerals] 
[--initial_prompt INITIAL_PROMPT] 
[--condition_on_previous_text CONDITION_ON_PREVIOUS_TEXT] 
[--fp16 FP16]
[--temperature_increment_on_fallback TEMPERATURE_INCREMENT_ON_FALLBACK] 
[--compression_ratio_threshold COMPRESSION_RATIO_THRESHOLD]
[--logprob_threshold LOGPROB_THRESHOLD] 
[--no_speech_threshold NO_SPEECH_THRESHOLD] 
[--max_line_width MAX_LINE_WIDTH] 
[--max_line_count MAX_LINE_COUNT]
[--highlight_words HIGHLIGHT_WORDS] 
[--segment_resolution {sentence,chunk}] 
[--threads THREADS]

#niceToHave

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.