Spaces:
Sleeping
Sleeping
UPDATE: ThreadPoolExecutor
Browse files- app.py +3 -1
- functions.py +0 -1
app.py
CHANGED
|
@@ -178,7 +178,9 @@ async def getCount(vectorstore: str):
|
|
| 178 |
|
| 179 |
@app.post("/getYoutubeTranscript")
|
| 180 |
async def getYTTranscript(urls: str):
|
| 181 |
-
return
|
|
|
|
|
|
|
| 182 |
|
| 183 |
|
| 184 |
@app.post("/analyzeData")
|
|
|
|
| 178 |
|
| 179 |
@app.post("/getYoutubeTranscript")
|
| 180 |
async def getYTTranscript(urls: str):
|
| 181 |
+
return {
|
| 182 |
+
"transcript": getTranscript(urls=urls)
|
| 183 |
+
}
|
| 184 |
|
| 185 |
|
| 186 |
@app.post("/analyzeData")
|
functions.py
CHANGED
|
@@ -23,7 +23,6 @@ from langchain_groq import ChatGroq
|
|
| 23 |
from pdf2image import convert_from_bytes
|
| 24 |
import numpy as np
|
| 25 |
import easyocr
|
| 26 |
-
from concurrent.futures import ThreadPoolExecutor
|
| 27 |
from bs4 import BeautifulSoup
|
| 28 |
from urllib.parse import urlparse, urljoin
|
| 29 |
from supabase import create_client
|
|
|
|
| 23 |
from pdf2image import convert_from_bytes
|
| 24 |
import numpy as np
|
| 25 |
import easyocr
|
|
|
|
| 26 |
from bs4 import BeautifulSoup
|
| 27 |
from urllib.parse import urlparse, urljoin
|
| 28 |
from supabase import create_client
|