Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,5 +3,16 @@ import gradio as gr
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
iface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|