Spaces:
Running
Running
SkyNetWalker
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ client = OpenAI(
|
|
17 |
print("Client initialized.")
|
18 |
|
19 |
SYSTEM_PROMPTS = {
|
20 |
-
"zh-HK": "
|
21 |
"zh-TW": "Chat by Traditional Chinese language of Taiwan (zh-TW). No chatty. Answer in simple but accurate way.",
|
22 |
"EN: General Assistant": "You are a helpful, respectful and honest assistant. Always provide accurate information and admit when you're not sure about something.",
|
23 |
"EN: Code Helper": "You are a programming assistant. Help users with coding questions, debugging, and best practices. Provide clear explanations and code examples when appropriate.",
|
@@ -92,7 +92,7 @@ with gr.Blocks() as demo:
|
|
92 |
)
|
93 |
|
94 |
# Create the chat components separately
|
95 |
-
chatbot = gr.Chatbot(height=
|
96 |
msg = gr.Textbox(
|
97 |
show_label=False,
|
98 |
placeholder="Enter text and press enter",
|
|
|
17 |
print("Client initialized.")
|
18 |
|
19 |
SYSTEM_PROMPTS = {
|
20 |
+
"zh-HK": "用香港的廣東話(Cantonese)對話. No chatty. Answer in simple but accurate way.",
|
21 |
"zh-TW": "Chat by Traditional Chinese language of Taiwan (zh-TW). No chatty. Answer in simple but accurate way.",
|
22 |
"EN: General Assistant": "You are a helpful, respectful and honest assistant. Always provide accurate information and admit when you're not sure about something.",
|
23 |
"EN: Code Helper": "You are a programming assistant. Help users with coding questions, debugging, and best practices. Provide clear explanations and code examples when appropriate.",
|
|
|
92 |
)
|
93 |
|
94 |
# Create the chat components separately
|
95 |
+
chatbot = gr.Chatbot(height=500)
|
96 |
msg = gr.Textbox(
|
97 |
show_label=False,
|
98 |
placeholder="Enter text and press enter",
|