Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -47,14 +47,14 @@ with gr.Blocks() as demo:
|
|
47 |
""")
|
48 |
with gr.Row():
|
49 |
with gr.Column():
|
50 |
-
result = gr.components.Textbox(lines=7, label="Writing Assist")
|
51 |
prompt = gr.components.Textbox(lines=2, label="Prompt", placeholder=examples[0], visible=False)
|
52 |
gr.Examples(examples, label='Examples', inputs=[prompt])
|
53 |
prompt.change(generate, inputs=[prompt], outputs=[result])
|
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[
|
58 |
gr.Examples(examples, label='Examples', inputs=[result2])
|
59 |
btn = gr.Button("Random Drafting")
|
60 |
btn.click(rnd_generate, inputs=[result2], outputs=[result2])
|
|
|
47 |
""")
|
48 |
with gr.Row():
|
49 |
with gr.Column():
|
50 |
+
result = gr.components.Textbox(lines=7, label="Writing Assist", placeholder=examples[0])
|
51 |
prompt = gr.components.Textbox(lines=2, label="Prompt", placeholder=examples[0], visible=False)
|
52 |
gr.Examples(examples, label='Examples', inputs=[prompt])
|
53 |
prompt.change(generate, inputs=[prompt], outputs=[result])
|
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[1])
|
58 |
gr.Examples(examples, label='Examples', inputs=[result2])
|
59 |
btn = gr.Button("Random Drafting")
|
60 |
btn.click(rnd_generate, inputs=[result2], outputs=[result2])
|