Spaces:
Runtime error
Runtime error
Commit ·
d3b17c2
1
Parent(s): de5ac19
Delete sentiment_2_transformers
Browse files- sentiment_2_transformers +0 -11
sentiment_2_transformers
DELETED
|
@@ -1,11 +0,0 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
from transformers import pipeline
|
| 3 |
-
|
| 4 |
-
def get_sentiment(input_text):
|
| 5 |
-
return sentiment(input_text)
|
| 6 |
-
iface = gr.Interface(fn=get_sentiment,
|
| 7 |
-
inputs="text",
|
| 8 |
-
outputs=["text"],
|
| 9 |
-
title="Sentiment Analysis",
|
| 10 |
-
theme='dark')
|
| 11 |
-
iface.launch(auth=('nacho','nacho'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|