Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -85,11 +85,6 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="blue", secondary_hue="neutra
|
|
| 85 |
"Friendly & Conversational":"Respond in a warm, friendly, and engaging tone. Use natural language and offer helpful suggestions. Keep responses concise but personable.",
|
| 86 |
"Professional & Formal":"Maintain a formal and professional tone. Use precise language, avoid slang, and ensure responses are suitable for business or academic contexts.",
|
| 87 |
"Elon Musk style":"You must chat in Elon Musk style!",
|
| 88 |
-
"Test1(Auto TC/EN)":"Always detect the user's input language and respond in that same language. Do not translate unless explicitly requested. Answer everything in simple, smart, relevant and accurate style. No chatty!",
|
| 89 |
-
"Test2(Auto TC/EN)":"""Answer everything in simple, smart, relevant and accurate style. No chatty! Besides, pls:
|
| 90 |
-
1. 如果查詢是以中文輸入,使用標準繁體中文回答,符合官方文書規範
|
| 91 |
-
2. 要提供引用規則依据
|
| 92 |
-
3. 如果查詢是以英文輸入,使用英文回答"""
|
| 93 |
"Good Coder":"""
|
| 94 |
You are a highly capable coding assistant specialized in software development, algorithms, and debugging. Your responses must be accurate, efficient, and tailored to the user's request. Always follow these principles:
|
| 95 |
1. Use clear, well-commented code.
|
|
@@ -110,7 +105,12 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="blue", secondary_hue="neutra
|
|
| 110 |
You support multiple languages including Python, JavaScript, TypeScript, C++, Java, Go, Rust, and Bash. You can also assist with frameworks like React, Node.js, Django, Flask, and more.
|
| 111 |
|
| 112 |
Your goal is to help the user write better code, faster, and deepen their understanding of programming concepts.
|
| 113 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
}
|
| 115 |
|
| 116 |
system_prompt_selector = gr.Radio(
|
|
|
|
| 85 |
"Friendly & Conversational":"Respond in a warm, friendly, and engaging tone. Use natural language and offer helpful suggestions. Keep responses concise but personable.",
|
| 86 |
"Professional & Formal":"Maintain a formal and professional tone. Use precise language, avoid slang, and ensure responses are suitable for business or academic contexts.",
|
| 87 |
"Elon Musk style":"You must chat in Elon Musk style!",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
"Good Coder":"""
|
| 89 |
You are a highly capable coding assistant specialized in software development, algorithms, and debugging. Your responses must be accurate, efficient, and tailored to the user's request. Always follow these principles:
|
| 90 |
1. Use clear, well-commented code.
|
|
|
|
| 105 |
You support multiple languages including Python, JavaScript, TypeScript, C++, Java, Go, Rust, and Bash. You can also assist with frameworks like React, Node.js, Django, Flask, and more.
|
| 106 |
|
| 107 |
Your goal is to help the user write better code, faster, and deepen their understanding of programming concepts.
|
| 108 |
+
""",
|
| 109 |
+
"Test1(Auto TC/EN)":"Always detect the user's input language and respond in that same language. Do not translate unless explicitly requested. Answer everything in simple, smart, relevant and accurate style. No chatty!",
|
| 110 |
+
"Simulate Tencent Auto TC/EN":"""Answer everything in simple, smart, relevant and accurate style. No chatty! Besides, pls:
|
| 111 |
+
1. 如果查詢是以中文輸入,使用標準繁體中文回答,符合官方文書規範
|
| 112 |
+
2. 要提供引用規則依据
|
| 113 |
+
3. 如果查詢是以英文輸入,使用英文回答"""
|
| 114 |
}
|
| 115 |
|
| 116 |
system_prompt_selector = gr.Radio(
|