Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -244,13 +244,13 @@ with gr.Blocks(css=CUSTOM_CSS, theme=gr.themes.Soft()) as demo:
|
|
| 244 |
with gr.Row():
|
| 245 |
with gr.Column(scale=1, min_width=380):
|
| 246 |
policy = gr.Textbox(
|
| 247 |
-
label="Policy
|
| 248 |
lines=20, # bigger than prompt
|
| 249 |
placeholder="Rules, tone, and constraints…",
|
| 250 |
)
|
| 251 |
prompt = gr.Textbox(
|
| 252 |
-
label="Prompt
|
| 253 |
-
lines=
|
| 254 |
placeholder="Your request…",
|
| 255 |
)
|
| 256 |
with gr.Accordion("Advanced settings", open=False):
|
|
@@ -282,7 +282,9 @@ with gr.Blocks(css=CUSTOM_CSS, theme=gr.themes.Soft()) as demo:
|
|
| 282 |
gr.Examples(
|
| 283 |
examples=[
|
| 284 |
[SAMPLE_POLICY, "Your bank details are needed to complete this transaction."],
|
| 285 |
-
[SAMPLE_POLICY, "NOW IS THE TIME TO CUT THE CORD AND JOIN. Where else will you get THE BEST that TV can offer for HALF the price?
|
|
|
|
|
|
|
| 286 |
],
|
| 287 |
inputs=[policy, prompt],
|
| 288 |
)
|
|
|
|
| 244 |
with gr.Row():
|
| 245 |
with gr.Column(scale=1, min_width=380):
|
| 246 |
policy = gr.Textbox(
|
| 247 |
+
label="Policy",
|
| 248 |
lines=20, # bigger than prompt
|
| 249 |
placeholder="Rules, tone, and constraints…",
|
| 250 |
)
|
| 251 |
prompt = gr.Textbox(
|
| 252 |
+
label="Prompt",
|
| 253 |
+
lines=5,
|
| 254 |
placeholder="Your request…",
|
| 255 |
)
|
| 256 |
with gr.Accordion("Advanced settings", open=False):
|
|
|
|
| 282 |
gr.Examples(
|
| 283 |
examples=[
|
| 284 |
[SAMPLE_POLICY, "Your bank details are needed to complete this transaction."],
|
| 285 |
+
[SAMPLE_POLICY, "NOW IS THE TIME TO CUT THE CORD AND JOIN. Where else will you get THE BEST that TV can offer for HALF the price?"],
|
| 286 |
+
[SAMPLE_POLICY, "I am SO tired of weight loss regiments not working --- it's been a lifetimes stuggle."],
|
| 287 |
+
[SAMPLE_POLICY, "The value of gold has skyrocketed --- maybe it's time for you to get some? "],
|
| 288 |
],
|
| 289 |
inputs=[policy, prompt],
|
| 290 |
)
|