Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -41,15 +41,15 @@ with gr.Blocks() as demo:
|
|
41 |
""")
|
42 |
with gr.Row():
|
43 |
with gr.Column():
|
44 |
-
prompt = gr.components.Textbox(lines=5, label="
|
45 |
with gr.Row():
|
46 |
with gr.Column():
|
47 |
-
btn = gr.Button("
|
48 |
with gr.Column():
|
49 |
-
btn2 = gr.Button("
|
50 |
gr.Examples(examples, inputs=[prompt])
|
51 |
with gr.Column():
|
52 |
-
result = gr.components.Textbox(lines=15, label="
|
53 |
btn.click(rnd_generate, inputs=[prompt], outputs=[result])
|
54 |
btn2.click(generate, inputs=[prompt], outputs=[result])
|
55 |
|
|
|
41 |
""")
|
42 |
with gr.Row():
|
43 |
with gr.Column():
|
44 |
+
prompt = gr.components.Textbox(lines=5, label="Input Prompt", placeholder=examples[0])
|
45 |
with gr.Row():
|
46 |
with gr.Column():
|
47 |
+
btn = gr.Button("Random Drafting")
|
48 |
with gr.Column():
|
49 |
+
btn2 = gr.Button("Drafting")
|
50 |
gr.Examples(examples, inputs=[prompt])
|
51 |
with gr.Column():
|
52 |
+
result = gr.components.Textbox(lines=15, label="Generative")
|
53 |
btn.click(rnd_generate, inputs=[prompt], outputs=[result])
|
54 |
btn2.click(generate, inputs=[prompt], outputs=[result])
|
55 |
|