Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -357,6 +357,9 @@ with gr.Blocks(css=STYLES) as demo:
|
|
| 357 |
with gr.Column(scale=1):
|
| 358 |
with gr.Tab("Control"):
|
| 359 |
with gr.Column(elem_classes=['group-border']):
|
|
|
|
|
|
|
|
|
|
| 360 |
with gr.Row():
|
| 361 |
gen_btn = gr.Button("generate text", elem_classes=['control-label-font', 'control-button'])
|
| 362 |
gen_alt_btn = gr.Button("generate alternatives", elem_classes=['control-label-font', 'control-button'])
|
|
@@ -374,7 +377,7 @@ with gr.Blocks(css=STYLES) as demo:
|
|
| 374 |
gr.Markdown("↳", scale=1, elem_classes=['wrap'])
|
| 375 |
alt_btn3 = gr.Button("Alternative 3", elem_classes=['alt-button'], scale=5)
|
| 376 |
|
| 377 |
-
with gr.Row(elem_classes=['
|
| 378 |
with gr.Column():
|
| 379 |
gr.Markdown("'Write the next paragraph based on the following stories so far.' is the default prompt when clicking `generate text`, and the text so far will always be attached to the end. By giving your own prompt, only the default prompt will be replaced.")
|
| 380 |
|
|
|
|
| 357 |
with gr.Column(scale=1):
|
| 358 |
with gr.Tab("Control"):
|
| 359 |
with gr.Column(elem_classes=['group-border']):
|
| 360 |
+
with gr.Column():
|
| 361 |
+
gr.Markdown("`generate text` button generate continued text and attach it to the end. on the other hand, `generate alternatives` button generate alternate texts up to 3 and let you choose one of them.")
|
| 362 |
+
|
| 363 |
with gr.Row():
|
| 364 |
gen_btn = gr.Button("generate text", elem_classes=['control-label-font', 'control-button'])
|
| 365 |
gen_alt_btn = gr.Button("generate alternatives", elem_classes=['control-label-font', 'control-button'])
|
|
|
|
| 377 |
gr.Markdown("↳", scale=1, elem_classes=['wrap'])
|
| 378 |
alt_btn3 = gr.Button("Alternative 3", elem_classes=['alt-button'], scale=5)
|
| 379 |
|
| 380 |
+
with gr.Row(elem_classes=['']):
|
| 381 |
with gr.Column():
|
| 382 |
gr.Markdown("'Write the next paragraph based on the following stories so far.' is the default prompt when clicking `generate text`, and the text so far will always be attached to the end. By giving your own prompt, only the default prompt will be replaced.")
|
| 383 |
|