Skip to content

Commit 898e35c

Browse files
committed
adjustment in add language icon
1 parent 01c3274 commit 898e35c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

app/app.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,18 @@ def submit_conversation(dataframe, conversation_id, session_id, language):
448448
choices=list(LANGUAGES.keys()), label="Language", interactive=True
449449
)
450450

451-
add_button = gr.Button("-", elem_id="add-language-btn")
452-
output = gr.Textbox(label="Status")
451+
with gr.Blocks(css="""
452+
#add-language-btn {
453+
background: url('os.path.abspath("app/feel-add-icon.png")') no-repeat center;
454+
background-size: contain;
455+
width: 50px;
456+
height: 50px;
457+
border: none;
458+
cursor: pointer;
459+
}
460+
""") as demo:
461+
add_button = gr.Button("", elem_id="add-language-btn")
462+
output = gr.Textbox(label="Status")
453463

454464
session_id = gr.Textbox(
455465
interactive=False,

app/feel-add-icon.png

29.5 KB
Loading

0 commit comments

Comments
 (0)