Yoxas commited on
Commit
34c68f0
·
verified ·
1 Parent(s): ee72e16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ 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():
 
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 = AutoModelForSequenceClassification.from_pretrained("BAAI/bge-reranker-v2-m3")
17
 
18
  # Move the model to CUDA if available
19
  if torch.cuda.is_available():