Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ import os
|
|
10 |
|
11 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
12 |
from sklearn.metrics.pairwise import cosine_similarity
|
13 |
-
|
14 |
-
|
15 |
my_token = os.getenv('my_repo_token')
|
16 |
def find_most_relevant_context(contexts, question, max_features=10000):
|
17 |
# Vectorize contexts and question with limited features
|
|
|
10 |
|
11 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
12 |
from sklearn.metrics.pairwise import cosine_similarity
|
13 |
+
|
14 |
+
|
15 |
my_token = os.getenv('my_repo_token')
|
16 |
def find_most_relevant_context(contexts, question, max_features=10000):
|
17 |
# Vectorize contexts and question with limited features
|