milyiyo commited on
Commit
965a5c1
1 Parent(s): 5dfe4cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -3,5 +3,16 @@ import gradio as gr
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
 
 
 
 
 
 
 
 
 
 
7
  iface.launch()
 
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
+ iface = gr.Interface(
7
+ fn=greet,
8
+ inputs=
9
+ [
10
+ # gr.inputs.Textbox(lines=1, placeholder='autor', default="", label=None),
11
+ gradio.inputs.Dropdown(['Pepe', 'Juan'], type="value", label='Nombre del autor'),
12
+ gr.inputs.Textbox(lines=1, placeholder='sentimiento', label='Sentimiento del texto generado'),
13
+ gr.inputs.Radio(['positivo', 'negativo'], type="value", label=None),
14
+ gr.inputs.Textbox(lines=1, placeholder='palabras', label='Palabras que desea incluir'),
15
+ gr.inputs.Textbox(lines=4, placeholder='texto inicial', label='Texto inicial'),
16
+ ],
17
+ outputs="text")
18
  iface.launch()