Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -61,8 +61,8 @@ with gr.Blocks() as demo:
|
|
61 |
with gr.Column():
|
62 |
result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, placeholder=prompts[1])
|
63 |
gr.Examples(examples, label='Examples', inputs=[result2])
|
64 |
-
|
65 |
-
|
66 |
|
67 |
if __name__ == "__main__":
|
68 |
demo.launch()
|
|
|
61 |
with gr.Column():
|
62 |
result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, placeholder=prompts[1])
|
63 |
gr.Examples(examples, label='Examples', inputs=[result2])
|
64 |
+
rnd_btn = gr.Button("Random Drafting")
|
65 |
+
rnd_btn.click(rnd_generate, inputs=[result2], outputs=[result2])
|
66 |
|
67 |
if __name__ == "__main__":
|
68 |
demo.launch()
|