Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ def generate_text(prompt, max_length="25", num_samples="1"):
|
|
| 71 |
iface = gr.Interface(
|
| 72 |
fn=generate_text,
|
| 73 |
inputs=[
|
| 74 |
-
gr.Textbox(label="Prompt", value="
|
| 75 |
gr.Radio(choices=["25", "50", "75", "100"], value="100", label="Max Length", type="value"),
|
| 76 |
gr.Radio(choices=["1", "2", "3"], value="1", label="Number of Samples", type="value"),
|
| 77 |
],
|
|
@@ -79,12 +79,9 @@ iface = gr.Interface(
|
|
| 79 |
title="Shakespeare-style Text Generator",
|
| 80 |
description="Enter a prompt to generate Shakespeare-style text continuation",
|
| 81 |
examples=[
|
| 82 |
-
["
|
| 83 |
-
["
|
| 84 |
-
["
|
| 85 |
-
["All the world's a stage, and all the", 100, 1],
|
| 86 |
-
["Now is the winter of our discontent", 100, 1],
|
| 87 |
-
["If music be the food of love,", 100, 1],
|
| 88 |
]
|
| 89 |
)
|
| 90 |
|
|
|
|
| 71 |
iface = gr.Interface(
|
| 72 |
fn=generate_text,
|
| 73 |
inputs=[
|
| 74 |
+
gr.Textbox(label="Prompt", value="Before we proceed any further, hear"),
|
| 75 |
gr.Radio(choices=["25", "50", "75", "100"], value="100", label="Max Length", type="value"),
|
| 76 |
gr.Radio(choices=["1", "2", "3"], value="1", label="Number of Samples", type="value"),
|
| 77 |
],
|
|
|
|
| 79 |
title="Shakespeare-style Text Generator",
|
| 80 |
description="Enter a prompt to generate Shakespeare-style text continuation",
|
| 81 |
examples=[
|
| 82 |
+
["No more talking on't; let it be done", 50, 1],
|
| 83 |
+
["We are accounted poor citizens", 100, 2],
|
| 84 |
+
["What he cannot help in his nature", 75, 3],
|
|
|
|
|
|
|
|
|
|
| 85 |
]
|
| 86 |
)
|
| 87 |
|