Spaces:
Runtime error
Runtime error
alexiss12341
commited on
Commit
•
4d297d8
1
Parent(s):
643c94b
Delete .ipynb_checkpoints/app-checkpoint.py
Browse files
.ipynb_checkpoints/app-checkpoint.py
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
|
3 |
-
from transformers import pipeline
|
4 |
-
|
5 |
-
pipe = pipeline(task="text-classification",
|
6 |
-
model="finiteautomata/bertweet-base-sentiment-analysis")
|
7 |
-
|
8 |
-
|
9 |
-
gr.Interface.from_pipeline(pipe,
|
10 |
-
title="Bertweet Base Sentiment Analysis",
|
11 |
-
description="Tweet Classification using POS, NEU, NEG labels",
|
12 |
-
allow_flagging="never").launch(inbrowser=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|