Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse filesAdd 'Random Generative' block.
app.py
CHANGED
@@ -54,9 +54,9 @@ with gr.Blocks() as demo:
|
|
54 |
btn = gr.Button("Next sentence")
|
55 |
btn.click(generate, inputs=[result], outputs=[result])
|
56 |
with gr.Column():
|
57 |
-
result2 = gr.components.Textbox(lines=7, label="
|
58 |
-
gr.Examples(examples, label='
|
59 |
-
btn = gr.Button("
|
60 |
btn.click(rnd_generate, inputs=[result2], outputs=[result2])
|
61 |
|
62 |
if __name__ == "__main__":
|
|
|
54 |
btn = gr.Button("Next sentence")
|
55 |
btn.click(generate, inputs=[result], outputs=[result])
|
56 |
with gr.Column():
|
57 |
+
result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, placeholder=examples[0])
|
58 |
+
gr.Examples(examples, label='Examples', inputs=[result2])
|
59 |
+
btn = gr.Button("Random Drafting")
|
60 |
btn.click(rnd_generate, inputs=[result2], outputs=[result2])
|
61 |
|
62 |
if __name__ == "__main__":
|