Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,9 +20,7 @@ from sentence_transformers import SentenceTransformer
|
|
20 |
from sklearn.metrics.pairwise import cosine_similarity
|
21 |
import numpy as np
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
HUGGINGFACEHUB_API_TOKEN = os.environ.get('HUGGINGFACEHUB_API_TOKEN')
|
26 |
|
27 |
def extract_text_from_pdf(pdf_path):
|
28 |
return extract_text(pdf_path)
|
|
|
20 |
from sklearn.metrics.pairwise import cosine_similarity
|
21 |
import numpy as np
|
22 |
|
23 |
+
HUGGINGFACEHUB_API_TOKEN = os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
|
|
|
|
24 |
|
25 |
def extract_text_from_pdf(pdf_path):
|
26 |
return extract_text(pdf_path)
|