Update app.py
Browse files
app.py
CHANGED
|
@@ -433,6 +433,9 @@ a[href*="api"], .api-button, #api-button {
|
|
| 433 |
transform: translate(-50%, 0);
|
| 434 |
width: 40%;
|
| 435 |
z-index: 9999;
|
|
|
|
|
|
|
|
|
|
| 436 |
}
|
| 437 |
#suggested_prompts_btn {
|
| 438 |
background: #D46BCA !important;
|
|
@@ -500,14 +503,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 500 |
with gr.Group(visible=False, elem_id="prompt_suggestions_box") as prompt_suggestions:
|
| 501 |
gr.Markdown("### Suggested Prompts")
|
| 502 |
|
| 503 |
-
suggestion_strength = gr.Slider(
|
| 504 |
-
label="Prompt Strength",
|
| 505 |
-
minimum=0,
|
| 506 |
-
maximum=100,
|
| 507 |
-
step=1,
|
| 508 |
-
value=50
|
| 509 |
-
)
|
| 510 |
-
|
| 511 |
# theme_buttons = [gr.Button(theme, visible=False) for theme in man_prompts.keys()]
|
| 512 |
for theme in man_prompts.keys(): # initially load man themes
|
| 513 |
btn = gr.Button(theme, visible=False)
|
|
|
|
| 433 |
transform: translate(-50%, 0);
|
| 434 |
width: 40%;
|
| 435 |
z-index: 9999;
|
| 436 |
+
|
| 437 |
+
max-height: 400px;
|
| 438 |
+
overflow-y: auto;
|
| 439 |
}
|
| 440 |
#suggested_prompts_btn {
|
| 441 |
background: #D46BCA !important;
|
|
|
|
| 503 |
with gr.Group(visible=False, elem_id="prompt_suggestions_box") as prompt_suggestions:
|
| 504 |
gr.Markdown("### Suggested Prompts")
|
| 505 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 506 |
# theme_buttons = [gr.Button(theme, visible=False) for theme in man_prompts.keys()]
|
| 507 |
for theme in man_prompts.keys(): # initially load man themes
|
| 508 |
btn = gr.Button(theme, visible=False)
|