Bugs

#1
by loshka2 - opened
ERROR:    Exception in ASGI application
  + Exception Group Traceback (most recent call last):
  |   File "/usr/local/lib/python3.10/site-packages/starlette/_utils.py", line 76, in collapse_excgroups
  |     yield
  |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 174, in __call__
  |     async with anyio.create_task_group() as task_group:
  |   File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 767, in __aexit__
  |     raise BaseExceptionGroup(
  | exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
  +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    |   File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
    |     result = await app(  # type: ignore[func-returns-value]
    |   File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
    |     return await self.app(scope, receive, send)
    |   File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__
    |     await super().__call__(scope, receive, send)
    |   File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 112, in __call__
    |     await self.middleware_stack(scope, receive, send)
    |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__
    |     raise exc
    |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__
    |     await self.app(scope, receive, _send)
    |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 173, in __call__
    |     with recv_stream, send_stream, collapse_excgroups():
    |   File "/usr/local/lib/python3.10/contextlib.py", line 153, in __exit__
    |     self.gen.throw(typ, value, traceback)
    |   File "/usr/local/lib/python3.10/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
    |     raise exc
    |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/base.py", line 176, in __call__
    |     await response(scope, wrapped_receive, send)
    |   File "/usr/local/lib/python3.10/site-packages/starlette/responses.py", line 157, in __call__
    |     await send({"type": prefix + "http.response.body", "body": self.body})
    |   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in _send
    |     await send(message)
    |   File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 500, in send
    |     output = self.conn.send(event=h11.Data(data=data))
    |   File "/usr/local/lib/python3.10/site-packages/h11/_connection.py", line 512, in send
    |     data_list = self.send_with_data_passthrough(event)
    |   File "/usr/local/lib/python3.10/site-packages/h11/_connection.py", line 545, in send_with_data_passthrough
    |     writer(event, data_list.append)
    |   File "/usr/local/lib/python3.10/site-packages/h11/_writers.py", line 65, in __call__
    |     self.send_data(event.data, write)
    |   File "/usr/local/lib/python3.10/site-packages/h11/_writers.py", line 91, in send_data
    |     raise LocalProtocolError("Too much data for declared Content-Length")
    | h11._util.LocalProtocolError: Too much data for declared Content-Length
    +------------------------------------

This is printed for docker run. Without docker (git clone, pip install requirements, python app.py) it doesn't even start properly. Running app_local.py also fails utterly. Please create a stable branch and only test your daily changes on dev branch.

Docker I won't investigate. In app_local I tried fixing the immediate bugs but more occur, it's outdated. For app.py, downgrading python 3.12 to 3.11 doesn't help. Checking out a commit from Decembers didn't help neither. Downgrading pydantic to 2.10.6 helped.

only use python app.py i deleted all unnecessary files.
git clone https://USERNAME:[email protected]/spaces/Gregniuki/F5-tts_English_German_Polish

use old environment from the orginal repo just:

pip install phonemizer ( requires espeak-ng installed)

or create new environment :

cd F5-tts_English_German_Polish
pip install -r requirements.txt

run the app.py
python app.py

you must also add your token to download model add this to app.py:

from huggingface_hub import login
login(token="TOKEN")

load models

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment