Spaces:
Build error
Build error
Commit
·
39e29a0
1
Parent(s):
87bdb14
add example inputs in the app
Browse files
app.py
CHANGED
|
@@ -71,11 +71,18 @@ iface = gr.Interface(
|
|
| 71 |
gr.Textbox(label="Prompt", value="We are accounted poor citizens, the"),
|
| 72 |
gr.Slider(minimum=10, maximum=200, value=100, step=1, label="Max Length"),
|
| 73 |
gr.Slider(minimum=1, maximum=5, value=1, step=1, label="Number of Samples"),
|
| 74 |
-
#gr.Slider(minimum=0.1, maximum=2.0, value=0.8, step=0.1, label="Temperature")
|
| 75 |
],
|
| 76 |
outputs=gr.Textbox(label="Generated Text"),
|
| 77 |
title="Shakespeare-style Text Generator",
|
| 78 |
-
description="Enter a prompt to generate Shakespeare-style text continuation"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
)
|
| 80 |
|
| 81 |
if __name__ == "__main__":
|
|
|
|
| 71 |
gr.Textbox(label="Prompt", value="We are accounted poor citizens, the"),
|
| 72 |
gr.Slider(minimum=10, maximum=200, value=100, step=1, label="Max Length"),
|
| 73 |
gr.Slider(minimum=1, maximum=5, value=1, step=1, label="Number of Samples"),
|
|
|
|
| 74 |
],
|
| 75 |
outputs=gr.Textbox(label="Generated Text"),
|
| 76 |
title="Shakespeare-style Text Generator",
|
| 77 |
+
description="Enter a prompt to generate Shakespeare-style text continuation",
|
| 78 |
+
examples=[
|
| 79 |
+
["O Romeo, Romeo, wherefore art thou"],
|
| 80 |
+
["To be, or not to be, that is"],
|
| 81 |
+
["Friends, Romans, countrymen, lend me"],
|
| 82 |
+
["All the world's a stage, and all the"],
|
| 83 |
+
["Now is the winter of our discontent"],
|
| 84 |
+
["If music be the food of love,"],
|
| 85 |
+
]
|
| 86 |
)
|
| 87 |
|
| 88 |
if __name__ == "__main__":
|