Spaces:
Runtime error
Runtime error
Commit ·
46585ea
1
Parent(s): 85ba014
Create app.py
Browse files1234567891011121314import gradio as grfrom transformers import pipeline
david = pipeline('sentiment-analysis')
def get_senti(input_text): result = david(input_text) return result[0]["label"]
iface=gr.Interface(fn=get_senti, inputs="text", outputs=['text'], title="David's Sentiment Analysis" )iface.launch(inline=False)app.pyAdded+14