Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

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


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

with gr.Blocks(css="""
#add-language-btn {
background: url('os.path.abspath("app/feel-add-icon.png")') no-repeat center;
background-size: contain;
width: 50px;
height: 50px;
border: none;
cursor: pointer;
}
""") as demo:
add_button = gr.Button("", elem_id="add-language-btn")
output = gr.Textbox(label="Status")

session_id = gr.Textbox(
interactive=False,
value=str(uuid.uuid4()),
Expand Down
Binary file added app/feel-add-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.