Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
from transformers import pipeline
|
|
|
3 |
sentiment= pipeline("sentiment-analysis")
|
|
|
4 |
def get_sentiment(input_text):
|
5 |
return sentiment(input_text)
|
6 |
|
|
|
1 |
import gradio as gr
|
2 |
+
|
3 |
from transformers import pipeline
|
4 |
+
|
5 |
sentiment= pipeline("sentiment-analysis")
|
6 |
+
|
7 |
def get_sentiment(input_text):
|
8 |
return sentiment(input_text)
|
9 |
|