Spaces:
Runtime error
Runtime error
michaelhoward2051
commited on
Update app.py
Browse files
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")
|