Spaces:
Runtime error
Runtime error
File size: 555 Bytes
f16abc3 |
1 2 3 4 5 6 7 8 9 10 11 12 |
! pip install gradio
!pip install transformers
import gradio as gr
from transformers import pipeline
sentiment = pipeline("sentiment-analysis")
def get_sentiment(input_text):
return sentiment(input_text)
result=get_sentiment("This course is super awesome!")
result
iface= gr.Interface(fn = get_sentiment,inputs="text",outputs=["text"],title="Sentiment Analysis",description="Get SentimentNegative/Positive For the given input")
iface.launch(auth=('user','AmVrUt'), auth_message="Check your Login Details sent to your e-mail",share="True",inline=False)
|