michaelhoward2051 commited on
Commit
0526c97
·
verified ·
1 Parent(s): 34bbd63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -1,5 +1,6 @@
1
  from transformers import pipeline, RagRetriever, RagTokenizer, RagTokenForGeneration
2
  import gradio as gr
 
3
 
4
  # Load RAG model and tokenizer
5
  tokenizer = RagTokenizer.from_pretrained("facebook/rag-token-base")
 
1
  from transformers import pipeline, RagRetriever, RagTokenizer, RagTokenForGeneration
2
  import gradio as gr
3
+ import torch
4
 
5
  # Load RAG model and tokenizer
6
  tokenizer = RagTokenizer.from_pretrained("facebook/rag-token-base")