Spaces:
Sleeping
Sleeping
Muhammad Adnan
commited on
Commit
·
5dc73ed
1
Parent(s):
029d365
Update huggingface_hub version to 0.19.0
Browse files- data_ret.py +1 -1
- requirements.txt +14 -9
data_ret.py
CHANGED
@@ -4,7 +4,7 @@ from datasets import load_dataset
|
|
4 |
dataset = load_dataset('tom-010/google_natural_questions_answerability', split='train')
|
5 |
|
6 |
# Function to filter based on a query/topic and return relevant data
|
7 |
-
def search_relevant_data(topic="Artificial Intelligence", max_words=
|
8 |
# Filter the dataset based on the presence of the topic in 'question', 'answer', or 'text' fields
|
9 |
filtered_data = dataset.filter(
|
10 |
lambda x: (
|
|
|
4 |
dataset = load_dataset('tom-010/google_natural_questions_answerability', split='train')
|
5 |
|
6 |
# Function to filter based on a query/topic and return relevant data
|
7 |
+
def search_relevant_data(topic="Artificial Intelligence", max_words=250, top_n=250):
|
8 |
# Filter the dataset based on the presence of the topic in 'question', 'answer', or 'text' fields
|
9 |
filtered_data = dataset.filter(
|
10 |
lambda x: (
|
requirements.txt
CHANGED
@@ -1,9 +1,14 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
sentence-transformers==
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
fastapi==0.115.4
|
2 |
+
huggingface-hub==0.26.2
|
3 |
+
sentence-transformers==3.2.1
|
4 |
+
torch==2.5.1
|
5 |
+
transformers==4.46.2
|
6 |
+
streamlit==1.40.0
|
7 |
+
gradio==4.44.1
|
8 |
+
scikit-learn==1.5.2
|
9 |
+
spacy==3.8.2
|
10 |
+
faiss-cpu==1.9.0
|
11 |
+
requests==2.32.3
|
12 |
+
numpy==2.0.2
|
13 |
+
pandas==2.2.3
|
14 |
+
pydantic==2.9.2
|