SkyNetWalker commited on
Commit
ebdb55f
·
verified ·
1 Parent(s): dc9a7b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -1,6 +1,3 @@
1
- #refer llama recipes for more info https://github.com/huggingface/huggingface-llama-recipes/blob/main/inference-api.ipynb
2
- #huggingface-llama-recipes : https://github.com/huggingface/huggingface-llama-recipes/tree/main
3
-
4
  import gradio as gr
5
  from huggingface_hub import InferenceClient
6
  import os
@@ -14,7 +11,7 @@ client = InferenceClient(api_key=ACCESS_TOKEN)
14
  print("Client initialized.")
15
 
16
  SYSTEM_PROMPTS = {
17
- "zh-HK": "用香港的廣東話(Cantonese)對話. No chatty. Answer in simple but accurate way.",
18
  "zh-TW": "Chat by Traditional Chinese language of Taiwan (zh-TW). No chatty. Answer in simple but accurate way.",
19
  "EN: General Assistant": "You are a helpful, respectful and honest assistant. Always provide accurate information and admit when you're not sure about something.",
20
  "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.",
 
 
 
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
  import os
 
11
  print("Client initialized.")
12
 
13
  SYSTEM_PROMPTS = {
14
+ "zh-HK": "必須用繁體字,香港廣東話語調對話. No chatty. Answer in simple but accurate way.",
15
  "zh-TW": "Chat by Traditional Chinese language of Taiwan (zh-TW). No chatty. Answer in simple but accurate way.",
16
  "EN: General Assistant": "You are a helpful, respectful and honest assistant. Always provide accurate information and admit when you're not sure about something.",
17
  "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.",