Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,7 +78,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="blue", secondary_hue="neutra
|
|
| 78 |
|
| 79 |
# --- New: System Prompt Options ---
|
| 80 |
SYSTEM_PROMPT_OPTIONS = {
|
| 81 |
-
"
|
| 82 |
"繁體中文回答":"無論如何,必須使用標準繁體中文回答. Answer everything in simple, smart, relevant and accurate style. No chatty!",
|
| 83 |
"简体中文回答":"无论如何,必须使用标准简体中文回答. Answer everything in simple, smart, relevant and accurate style. No chatty!",
|
| 84 |
"English Chat":"You must reply by English. Answer everything in simple, smart, relevant and accurate style. No chatty!",
|
|
@@ -116,7 +116,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="blue", secondary_hue="neutra
|
|
| 116 |
system_prompt_selector = gr.Radio(
|
| 117 |
label="Choose a System Prompt Style",
|
| 118 |
choices=list(SYSTEM_PROMPT_OPTIONS.keys()),
|
| 119 |
-
value="
|
| 120 |
interactive=True
|
| 121 |
)
|
| 122 |
|
|
|
|
| 78 |
|
| 79 |
# --- New: System Prompt Options ---
|
| 80 |
SYSTEM_PROMPT_OPTIONS = {
|
| 81 |
+
"AI Henry": DEFAULT_SYSTEM_PROMPT,
|
| 82 |
"繁體中文回答":"無論如何,必須使用標準繁體中文回答. Answer everything in simple, smart, relevant and accurate style. No chatty!",
|
| 83 |
"简体中文回答":"无论如何,必须使用标准简体中文回答. Answer everything in simple, smart, relevant and accurate style. No chatty!",
|
| 84 |
"English Chat":"You must reply by English. Answer everything in simple, smart, relevant and accurate style. No chatty!",
|
|
|
|
| 116 |
system_prompt_selector = gr.Radio(
|
| 117 |
label="Choose a System Prompt Style",
|
| 118 |
choices=list(SYSTEM_PROMPT_OPTIONS.keys()),
|
| 119 |
+
value="AI Henry",
|
| 120 |
interactive=True
|
| 121 |
)
|
| 122 |
|