Skip to content

Commit

Permalink
Revert "Move accordions together"
Browse files Browse the repository at this point in the history
This reverts commit 839d593.
  • Loading branch information
cornzz committed Oct 25, 2024
1 parent 91d43e1 commit 574cb59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
11 changes: 0 additions & 11 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ textarea::placeholder {
padding: 2px 8px;
}

.accordion.about {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}

/* Examples */
#examples .label {
display: none;
Expand All @@ -112,12 +107,6 @@ textarea::placeholder {
font-size: var(--text-lg);
}

.accordion.examples {
margin-top: -17px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}

/* Dataframes */
.dataframe svelte-virtual-table-viewport table {
scrollbar-width: none;
Expand Down
4 changes: 2 additions & 2 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def run_demo(
f'# Prompt Compression Demo <a class="source" href="https://github.com/cornzz/llmlingua-demo" target="_blank">{GH_LOGO}</a>'
)
# Info / Settings
with gr.Accordion("About this demo (please read):", open=False, elem_classes="accordion about"):
with gr.Accordion("About this demo (please read):", open=False, elem_classes="accordion"):
gr.Markdown(
"Your prompt is sent to a target LLM for completion, both in its uncompressed form and compressed using [LLMLingua-2](https://llmlingua.com/llmlingua2.html). "
"Evaluate the responses and give feedback for each one by clicking on the respective button below the answer."
Expand Down Expand Up @@ -260,7 +260,7 @@ def run_demo(
)

# Examples
with gr.Accordion("Example prompts:", open=False, elem_classes="accordion examples"):
with gr.Accordion("Example prompts:", open=False, elem_classes="accordion"):
examples = gr.Dataset(
samples=[[example["original_prompt"]] for example in example_dataset],
components=[gr.Textbox(visible=False)],
Expand Down

0 comments on commit 574cb59

Please sign in to comment.