Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import streamlit as st
|
|
2 |
from transformers import pipeline
|
3 |
import nltk
|
4 |
|
5 |
-
# Download NLTK data for sentence tokenization
|
6 |
-
nltk.download('
|
7 |
|
8 |
# Load the Hugging Face pipelines
|
9 |
classifier = pipeline("zero-shot-classification", model="MoritzLaurer/DeBERTa-v3-base-mnli-fever-anli")
|
|
|
2 |
from transformers import pipeline
|
3 |
import nltk
|
4 |
|
5 |
+
# Download NLTK data for sentence tokenization (updated to punkt_tab)
|
6 |
+
nltk.download('punkt_tab')
|
7 |
|
8 |
# Load the Hugging Face pipelines
|
9 |
classifier = pipeline("zero-shot-classification", model="MoritzLaurer/DeBERTa-v3-base-mnli-fever-anli")
|