Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
if settings.DEBUG:
# This allows the error pages to be debugged during development, just visit
# these url in browser to see how these error pages look like.
from allauth.core.ratelimit import _handler429 as handle_429 # noqa
from allauth.core.ratelimit import respond_429 # noqa

urlpatterns += [
path(
Expand All @@ -32,7 +32,7 @@
default_views.page_not_found,
kwargs={"exception": Exception("Page not Found")},
),
path("429/", handle_429),
path("429/", respond_429),
path("500/", default_views.server_error),
]

Expand Down
21 changes: 9 additions & 12 deletions requirements/analyzer.in
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
# Used by the keyword/topic analyzer
beautifulsoup4
textacy
spacy

# Must pin to a version compatible with the spacy-model below
spacy[transformers] >=3.8.7,< 4.0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a comment whenever we pin something noting why it's pinned.


# Spacy transformers is listed in the production requirements
# It installs PyTorch which is hundreds of MB
langdetect

# Our use of textacy has an incompatibility with networkx v3
networkx<3.0
# Used to query OpenAI embedding models
llm >= 0.26

# Has to be downloaded directly like this (~30MB)
https://github.com/explosion/spacy-models/releases/download/en_core_web_md-3.4.0/en_core_web_md-3.4.0-py3-none-any.whl
# https://github.com/explosion/spacy-models/releases/tag/en_core_web_md-3.8.0
https://github.com/explosion/spacy-models/releases/download/en_core_web_md-3.8.0/en_core_web_md-3.8.0-py3-none-any.whl

# Used to parse web pages and get the "main section" of the page
trafilatura
trafilatura >= 2.0.0

# Used as a transitive dependency
# but we need to make sure lxml.html.clean is installed too
Expand All @@ -35,14 +38,8 @@ adlfs==2024.12.0
# Postgres & Postgres vector support
pgvector

# This installs PyTorch which is ~250MB
spacy-transformers<1.2.0,>=1.1.8

# For the ST backend
sentence-transformers

# Numpy v2 has some breaking changes (for now)
numpy<2
sentence-transformers >= 4.1,<5.0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here? Lots of pinning here we're doing?


# https://github.com/FunAudioLLM/CosyVoice/issues/516#issuecomment-2423324107
huggingface_hub<0.25
Loading