Reyad-Ahmmed commited on
Commit
c78b3b7
·
verified ·
1 Parent(s): 84dfc21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ from transformers import RagTokenizer, RagRetriever, RagSequenceForGeneration
2
  from datasets import load_dataset
3
 
4
  # Load the wiki_dpr dataset and trust the remote code to execute
5
- dataset = load_dataset("wiki_dpr", trust_remote_code=True)
6
 
7
  # Initialize the RAG tokenizer (use the T5 tokenizer for RAG)
8
  tokenizer = RagTokenizer.from_pretrained("facebook/rag-token-nq")
 
2
  from datasets import load_dataset
3
 
4
  # Load the wiki_dpr dataset and trust the remote code to execute
5
+ dataset = load_dataset('wiki_dpr', 'psgs_w100.nq.exact')
6
 
7
  # Initialize the RAG tokenizer (use the T5 tokenizer for RAG)
8
  tokenizer = RagTokenizer.from_pretrained("facebook/rag-token-nq")