SrujayReddy31 commited on
Commit
9facae6
1 Parent(s): 3980c90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
  import torch
3
  from transformers import RagTokenizer, RagRetriever, RagSequenceForGeneration
 
4
 
5
  # Load the tokenizer, retriever, and model
6
  tokenizer = RagTokenizer.from_pretrained("facebook/rag-sequence-nq")
 
1
  import gradio as gr
2
  import torch
3
  from transformers import RagTokenizer, RagRetriever, RagSequenceForGeneration
4
+ import faiss # Ensure faiss is available
5
 
6
  # Load the tokenizer, retriever, and model
7
  tokenizer = RagTokenizer.from_pretrained("facebook/rag-sequence-nq")