Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -88,6 +88,9 @@ def make_poem(author, sentiment, words, text):
|
|
88 |
# audio = tts_es(poem)
|
89 |
# return poem, audio
|
90 |
return poem
|
|
|
|
|
|
|
91 |
|
92 |
iface = gr.Interface(
|
93 |
fn=make_poem,
|
@@ -103,6 +106,7 @@ iface = gr.Interface(
|
|
103 |
gr.outputs.Textbox(label="Texto generado"),
|
104 |
# gr.outputs.Audio(label="Primeros segundos")
|
105 |
],
|
|
|
106 |
examples=
|
107 |
[
|
108 |
['Pablo Neruda', 'positivo', 'cielo, luna, mar', 'Todos fueron a verle pasar']
|
|
|
88 |
# audio = tts_es(poem)
|
89 |
# return poem, audio
|
90 |
return poem
|
91 |
+
|
92 |
+
article = "<p style='text-align: center'>Don't miss this other cool space based in Spanish generation of poems based in sonnets: <a href='https://huggingface.co/spaces/hackathon-pln-es/sonnet-poetry-generator-spanish' target='_blank'>sonnet-poetry-generator-spanish</a></p>"
|
93 |
+
|
94 |
|
95 |
iface = gr.Interface(
|
96 |
fn=make_poem,
|
|
|
106 |
gr.outputs.Textbox(label="Texto generado"),
|
107 |
# gr.outputs.Audio(label="Primeros segundos")
|
108 |
],
|
109 |
+
article= article,
|
110 |
examples=
|
111 |
[
|
112 |
['Pablo Neruda', 'positivo', 'cielo, luna, mar', 'Todos fueron a verle pasar']
|