Muhammad Adnan commited on
Commit
5dc73ed
·
1 Parent(s): 029d365

Update huggingface_hub version to 0.19.0

Browse files
Files changed (2) hide show
  1. data_ret.py +1 -1
  2. 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=100, top_n=100):
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
- streamlit==1.20.0
2
- transformers==4.33.0
3
- sentence-transformers==2.2.0
4
- scipy==1.10.0
5
- numpy==1.24.2
6
- datasets==2.9.0
7
- beautifulsoup4==4.12.0
8
- spacy==3.5.0
9
- huggingface_hub==0.19.0 # Ensure compatibility with cached_download
 
 
 
 
 
 
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