Spaces:
Runtime error
Runtime error
File size: 658 Bytes
11dc9a8 2dc9b7e 11dc9a8 2dc9b7e 11dc9a8 b233ca6 d367030 11dc9a8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import gradio as gr
def article_selection(sentiment):
if sentiment == "Positive":
return f"""The sentence you requested is Positive!"""
elif sentiment == "Negative":
return f"""The sentence you requested is Positive!"""
else:
return f"""The sentence you requested is Positive!"""
demo = gr.Interface(
fn=article_selection,
inputs = gr.inputs.Dropdown(["Positive","Negative","Neutral"]),
outputs = [gr.outputs.Textbox(label="Sentiment Prediction")],
)
#TODO
#demo = gr.TabbedInterface([url_demo, voice_demo], ["Swedish YouTube Video to English Text", "Swedish Audio to English Text"])
demo.launch() |