Spaces:
Running
Running
File size: 533 Bytes
7023483 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
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() |