Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,7 +72,7 @@ with gr.Blocks() as demo:
|
|
| 72 |
btn.click(generate, inputs=[result], outputs=[result])
|
| 73 |
with gr.Tab("Random Generative"):
|
| 74 |
# result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, placeholder=prompts[1])
|
| 75 |
-
result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, value =
|
| 76 |
gr.Examples(examples, label='Examples', inputs=[result2])
|
| 77 |
rnd_btn = gr.Button("Random Drafting")
|
| 78 |
rnd_btn.click(rnd_generate, inputs=[result2], outputs=[result2])
|
|
|
|
| 72 |
btn.click(generate, inputs=[result], outputs=[result])
|
| 73 |
with gr.Tab("Random Generative"):
|
| 74 |
# result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, placeholder=prompts[1])
|
| 75 |
+
result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, value = examples[0][0])
|
| 76 |
gr.Examples(examples, label='Examples', inputs=[result2])
|
| 77 |
rnd_btn = gr.Button("Random Drafting")
|
| 78 |
rnd_btn.click(rnd_generate, inputs=[result2], outputs=[result2])
|