pragnakalp's picture
Update app.py
7023483
raw
history blame
533 Bytes
import gradio as gr
def generate_emotion(sentences):
result = "happy"
return result
inputs=gr.Textbox(lines=5, label="Sentences",elem_id="inp_div")
outputs=gr.Textbox(lines=5, label="Here is the Result",elem_id="inp_div")
demo = gr.Interface(
generate_emotion,
inputs,
outputs,
title="Emotion Detection",
description="Feel free to give your feedback",
css=".gradio-container {background-color: lightgray} #inp_div {background-color: [#7](https://www1.example.com/issues/7)FB3D5;"
)
demo.launch()