Spaces:
Sleeping
Sleeping
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/
|
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/roberta-suicide-detection-hk")
|
6 |
|
7 |
def classify_text(text):
|
8 |
# Get predictions
|