Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
| 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():
|