ameyahuggingface's picture
Create app.py
f16abc3
raw
history blame
No virus
555 Bytes
! 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)