milyiyo's picture
Update app.py
d0b1dd7
raw
history blame
686 Bytes
import gradio as gr
def greet(name):
return "Hello " + name + "!!"
iface = gr.Interface(
fn=greet,
inputs=
[
# gr.inputs.Textbox(lines=1, placeholder='autor', default="", label=None),
gr.inputs.Dropdown(['Pepe', 'Juan'], type="value", label='Nombre del autor'),
gr.inputs.Textbox(lines=1, placeholder='sentimiento', label='Sentimiento del texto generado'),
gr.inputs.Radio(['positivo', 'negativo'], type="value", label=None),
gr.inputs.Textbox(lines=1, placeholder='palabras', label='Palabras que desea incluir'),
gr.inputs.Textbox(lines=4, placeholder='texto inicial', label='Texto inicial'),
],
outputs="text")
iface.launch()