Commit
·
f978557
1
Parent(s):
52c6909
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@ import gradio as gr
|
|
4 |
model_checkpoint = "MuntasirHossain/distilbert-finetuned-ag-news"
|
5 |
model = pipeline("text-classification", model=model_checkpoint)
|
6 |
|
7 |
-
|
8 |
def classify(text):
|
9 |
label = model(text)[0]["label"]
|
10 |
return label
|
|
|
4 |
model_checkpoint = "MuntasirHossain/distilbert-finetuned-ag-news"
|
5 |
model = pipeline("text-classification", model=model_checkpoint)
|
6 |
|
|
|
7 |
def classify(text):
|
8 |
label = model(text)[0]["label"]
|
9 |
return label
|