Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -50,15 +50,16 @@ with gr.Blocks() as demo:
|
|
50 |
"""
|
51 |
<h1 style="text-align: center;">Legal Document Drafting</h1>
|
52 |
""")
|
53 |
-
with gr.
|
54 |
-
with gr.Column():
|
55 |
result = gr.components.Textbox(lines=7, label="Writing Assist", placeholder=prompts[0])
|
56 |
prompt = gr.components.Textbox(lines=2, label="Prompt", placeholder=examples[0], visible=False)
|
57 |
gr.Examples(examples, label='Examples', inputs=[prompt])
|
58 |
prompt.change(generate, inputs=[prompt], outputs=[result])
|
59 |
btn = gr.Button("Next sentence")
|
60 |
btn.click(generate, inputs=[result], outputs=[result])
|
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")
|
|
|
50 |
"""
|
51 |
<h1 style="text-align: center;">Legal Document Drafting</h1>
|
52 |
""")
|
53 |
+
with gr.Tab("Writing Assist"):
|
54 |
+
# with gr.Column():
|
55 |
result = gr.components.Textbox(lines=7, label="Writing Assist", placeholder=prompts[0])
|
56 |
prompt = gr.components.Textbox(lines=2, label="Prompt", placeholder=examples[0], visible=False)
|
57 |
gr.Examples(examples, label='Examples', inputs=[prompt])
|
58 |
prompt.change(generate, inputs=[prompt], outputs=[result])
|
59 |
btn = gr.Button("Next sentence")
|
60 |
btn.click(generate, inputs=[result], outputs=[result])
|
61 |
+
# with gr.Column():
|
62 |
+
with gr.Tab("Random Generative"):
|
63 |
result2 = gr.components.Textbox(lines=7, label="Random Generative", show_label=True, placeholder=prompts[1])
|
64 |
gr.Examples(examples, label='Examples', inputs=[result2])
|
65 |
rnd_btn = gr.Button("Random Drafting")
|