jorge-henao commited on
Commit
81628dc
·
1 Parent(s): 730413e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -14,11 +14,11 @@ def make_new_sonnet(prompt, max_lenght):
14
  num_return_sequences=1)
15
  return ouputs[0]['generated_text']
16
 
17
- article = "<p style='text-align: center'>Don't miss this other cool space based on different styles of spanish poetry: <a href=https://huggingface.co/spaces/hackathon-pln-es/poem-generation-es>poem-generation-es</a></p>"
18
  examples = [
19
- ['vendrá la muerte y tendrá tus ojos','140'],
20
- ['buenas cosas pasan cuando anochece', '200'],
21
- ['al despertar el dinosaurio todavía estaba ahí', '140' ]
22
  ]
23
  iface = gr.Interface(fn=make_new_sonnet,
24
  title= "Generador de poesía basada en sonetos en español",
@@ -31,4 +31,4 @@ iface = gr.Interface(fn=make_new_sonnet,
31
  article= article,
32
  examples = examples
33
  )
34
- iface.launch(enable_queue=True)
 
14
  num_return_sequences=1)
15
  return ouputs[0]['generated_text']
16
 
17
+ article = "<p style='text-align: center'>Don't miss this other cool space based in a model of different styles of poetry in spanish: <a href=https://huggingface.co/spaces/hackathon-pln-es/poem-generation-es>poem-generation-es</a></p>"
18
  examples = [
19
+ ['vendrá la muerte y tendrá tus ojos',140],
20
+ ['buenas cosas pasan cuando anochece', 200],
21
+ ['al despertar el dinosaurio todavía estaba ahí', 140 ]
22
  ]
23
  iface = gr.Interface(fn=make_new_sonnet,
24
  title= "Generador de poesía basada en sonetos en español",
 
31
  article= article,
32
  examples = examples
33
  )
34
+ iface.launch(debug=True)