Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer,pipeline
|
2 |
import torch
|
3 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
model = AutoModelForSequenceClassification.from_pretrained('NLP-LTU/bertweet-large-sexism-detector')
|
6 |
def predict(prompt):
|
|
|
1 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer,pipeline
|
2 |
import torch
|
3 |
import gradio as gr
|
4 |
+
title = "Check our Sexism Detector"
|
5 |
+
description = """
|
6 |
+
This is a fine-tuned model of distilbert-base on the Explainable Detection of Online Sexism (EDOS) dataset. It is intended to be used as a classification model for identifying tweets (0 - not sexist; 1 - sexist)."""
|
7 |
+
|
8 |
+
article = "Try our model in Hungging face using :https://huggingface.co/NLP-LTU/BERTweet-large-sexism-detector"
|
9 |
|
10 |
model = AutoModelForSequenceClassification.from_pretrained('NLP-LTU/bertweet-large-sexism-detector')
|
11 |
def predict(prompt):
|