Spaces:
Sleeping
Sleeping
DEBUG: nltk
Browse files- app.py +0 -3
- functions.py +3 -0
app.py
CHANGED
@@ -17,13 +17,10 @@ from fastapi.middleware.cors import CORSMiddleware
|
|
17 |
from src.api.speech_api import speech_translator_router
|
18 |
from functions import client as supabase
|
19 |
from urllib.parse import urlparse
|
20 |
-
import nltk
|
21 |
from collections import Counter, defaultdict
|
22 |
from datetime import datetime, timedelta
|
23 |
from dateutil.parser import isoparse
|
24 |
|
25 |
-
nltk.download('punkt_tab')
|
26 |
-
|
27 |
app = FastAPI(title="ConversAI", root_path="/api/v1")
|
28 |
|
29 |
app.add_middleware(
|
|
|
17 |
from src.api.speech_api import speech_translator_router
|
18 |
from functions import client as supabase
|
19 |
from urllib.parse import urlparse
|
|
|
20 |
from collections import Counter, defaultdict
|
21 |
from datetime import datetime, timedelta
|
22 |
from dateutil.parser import isoparse
|
23 |
|
|
|
|
|
24 |
app = FastAPI(title="ConversAI", root_path="/api/v1")
|
25 |
|
26 |
app.add_middleware(
|
functions.py
CHANGED
@@ -35,6 +35,9 @@ import base64
|
|
35 |
import time
|
36 |
import requests
|
37 |
|
|
|
|
|
|
|
38 |
load_dotenv("secrets.env")
|
39 |
client = create_client(os.environ["SUPABASE_URL"], os.environ["SUPABASE_KEY"])
|
40 |
qdrantClient = QdrantClient(url=os.environ["QDRANT_URL"], api_key=os.environ["QDRANT_API_KEY"])
|
|
|
35 |
import time
|
36 |
import requests
|
37 |
|
38 |
+
nltk.download('punkt_tab')
|
39 |
+
|
40 |
+
|
41 |
load_dotenv("secrets.env")
|
42 |
client = create_client(os.environ["SUPABASE_URL"], os.environ["SUPABASE_KEY"])
|
43 |
qdrantClient = QdrantClient(url=os.environ["QDRANT_URL"], api_key=os.environ["QDRANT_API_KEY"])
|