Skip to content

Commit

Permalink
Disable words route
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnySc2 committed Jan 6, 2024
1 parent 3f3c8c4 commit 9394da4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fastapi_server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
from models.chat_messages import chat_create_tables
from models.todo_item import todo_create_tables
from routes.hello_world import MyRootRoute
from routes.similar_words import MyWordsRoute

# from routes.similar_words import MyWordsRoute
from routes.text_to_speech import MyTTSRoute

load_dotenv()
Expand Down Expand Up @@ -47,7 +48,7 @@ def shutdown_event():


app = Litestar(
[index, get_book, MyRootRoute, MyWordsRoute, MyTTSRoute],
[index, get_book, MyRootRoute, MyTTSRoute],
on_startup=[startup_event],
on_shutdown=[shutdown_event],
template_config=TemplateConfig(
Expand Down
1 change: 1 addition & 0 deletions fastapi_server/routes/similar_words.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import random

# import nltk
from litestar import Controller, get
from nltk.corpus import wordnet as wn # pyre-fixme[21]
from nltk.corpus.reader.wordnet import Synset # pyre-fixme[21]
Expand Down

0 comments on commit 9394da4

Please sign in to comment.