Skip to content

Commit 5b93962

Browse files
Merge pull request #14 from huggingface/ui-edits
UI edits
2 parents 15e4239 + 898e35c commit 5b93962

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

app/app.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"Japanese": "あなたは役に立つアシスタントであり、常に流暢で自然な日本語で応答します。ユーザーが使用する言語に関係なく、日本語で対応してください。",
3030
"Korean": "당신은 유용한 도우미이며, 항상 유창하고 자연스러운 한국어로 응답합니다. 사용자가 어떤 언어를 사용하든 한국어로 대답하세요.",
3131
"Hebrew": " אתה עוזר טוב ומועיל שמדבר בעברית ועונה בעברית.",
32+
"Hindi" : "आप एक मददगार सहायक हैं। उपयोगकर्ता द्वारा इस्तेमाल की गई भाषा की परवाह किए बिना हमेशा धाराप्रवाह और स्वाभाविक अंग्रेजी में अनुरोधों का जवाब दें।"
3233
}
3334

3435

@@ -447,6 +448,19 @@ def submit_conversation(dataframe, conversation_id, session_id, language):
447448
choices=list(LANGUAGES.keys()), label="Language", interactive=True
448449
)
449450

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")
463+
450464
session_id = gr.Textbox(
451465
interactive=False,
452466
value=str(uuid.uuid4()),

app/feel-add-icon.png

29.5 KB
Loading

0 commit comments

Comments
 (0)