Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
# Load pre-trained sentiment-analysis pipeline
|
| 5 |
-
classifier = pipeline('text-classification', model="wcyat/bert-suicide-detection-hk-new")
|
| 6 |
|
| 7 |
def classify_text(text):
|
| 8 |
# Get predictions
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
# Load pre-trained sentiment-analysis pipeline
|
| 5 |
+
classifier = pipeline('text-classification', model="wcyat/bert-suicide-detection-hk-large-new")
|
| 6 |
|
| 7 |
def classify_text(text):
|
| 8 |
# Get predictions
|