Spaces:
Runtime error
Runtime error
Commit
·
19484a4
1
Parent(s):
2d318b7
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ def theme_classification(text, text_classifier):
|
|
81 |
|
82 |
sid_obj = SentimentIntensityAnalyzer()
|
83 |
classifier = pipeline("zero-shot-classification", model="joeddav/xlm-roberta-large-xnli")
|
84 |
-
|
85 |
df = pd.DataFrame(dataset)
|
86 |
new_df = pd.DataFrame()
|
87 |
|
|
|
81 |
|
82 |
sid_obj = SentimentIntensityAnalyzer()
|
83 |
classifier = pipeline("zero-shot-classification", model="joeddav/xlm-roberta-large-xnli")
|
84 |
+
dataset = load_dataset('csv', data_files=["Hugging Face DF.csv"], delimiter=',', column_names=["date", "url", "texts", "is_title", "theme", "translated"])
|
85 |
df = pd.DataFrame(dataset)
|
86 |
new_df = pd.DataFrame()
|
87 |
|