Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,11 +9,11 @@ import gradio as gr
|
|
9 |
import spaces
|
10 |
|
11 |
# Load the tokenizer and model
|
12 |
-
led_tokenizer = AutoTokenizer.from_pretrained("
|
13 |
summarizer = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6", tokenizer="sshleifer/distilbart-cnn-12-6", framework="pt")
|
14 |
|
15 |
# Load the model separately
|
16 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("
|
17 |
|
18 |
# Move the model to CUDA if available
|
19 |
if torch.cuda.is_available():
|
|
|
9 |
import spaces
|
10 |
|
11 |
# Load the tokenizer and model
|
12 |
+
led_tokenizer = AutoTokenizer.from_pretrained("BAAI/bge-reranker-v2-m3")
|
13 |
summarizer = pipeline("summarization", model="sshleifer/distilbart-cnn-12-6", tokenizer="sshleifer/distilbart-cnn-12-6", framework="pt")
|
14 |
|
15 |
# Load the model separately
|
16 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("BAAI/bge-reranker-v2-m3")
|
17 |
|
18 |
# Move the model to CUDA if available
|
19 |
if torch.cuda.is_available():
|