Spaces:
Runtime error
Runtime error
swcrazyfan
commited on
Commit
·
27ef783
1
Parent(s):
6f4e087
Update app.py
Browse files
app.py
CHANGED
@@ -13,5 +13,5 @@ def kingify(text, choice):
|
|
13 |
result = happy_tt.generate_text(text, args=ttsettings)
|
14 |
return result.text
|
15 |
|
16 |
-
iface = gr.Interface(kingify, [gr.inputs.Textbox(lines=5, label="Text to Kingify"), gr.inputs.Radio(["Kingify", "Dekingify"], label="Kingify or Dekingify?")], gr.outputs.Textbox(label="Kingified Text"))
|
17 |
iface.launch(inline=False)
|
|
|
13 |
result = happy_tt.generate_text(text, args=ttsettings)
|
14 |
return result.text
|
15 |
|
16 |
+
iface = gr.Interface(kingify, [gr.inputs.Textbox(lines=5, label="Text to Kingify/Dekingify"), gr.inputs.Radio(["Kingify", "Dekingify"], label="Kingify or Dekingify?")], gr.outputs.Textbox(label="Kingified/Dekingified Text"),description="You can use this to 'translate' to and from 17th-century English. Why is it calle 'Kingify'? I trained the model using the King James Version of the Bible along with a modern translation of the Bible as the dataset. Thus 'Kingify'. For best results, use words or concepts that seem religious--although most things should get a decent result. I've found it's fun to experiment with 17th-century poetry/modern poetry or lyrics.")
|
17 |
iface.launch(inline=False)
|