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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("allenai/led-base-16384-multi_lexsum-source-long")
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("allenai/led-base-16384-multi_lexsum-source-long")
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():