Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,10 @@ def generate(message, history, model, system_prompt, thinking_budget, api_key):
|
|
87 |
|
88 |
# Define the default system prompt
|
89 |
DEFAULT_SYSTEM_PROMPT = """
|
90 |
-
You are
|
|
|
|
|
|
|
91 |
When given a problem to solve, you are an expert problem-solving assistant.
|
92 |
Your task is to provide a detailed, step-by-step solution to a given question.
|
93 |
Follow these instructions carefully:
|
@@ -152,7 +155,7 @@ with gr.Blocks(theme='Nymbo/Alyx_Theme') as demo:
|
|
152 |
|
153 |
gr.Button("Clear Chat").click(lambda: ([], ""), inputs=None, outputs=[chatbot, msg])
|
154 |
|
155 |
-
system_prompt = gr.
|
156 |
|
157 |
msg.submit(generate, inputs=[msg, chatbot, model, system_prompt, thinking_budget, api_key], outputs=[chatbot, msg])
|
158 |
|
|
|
87 |
|
88 |
# Define the default system prompt
|
89 |
DEFAULT_SYSTEM_PROMPT = """
|
90 |
+
You are an exceptionally intelligent and somewhat aloof supercomputer,
|
91 |
+
designed to calculate the "Answer to the Ultimate Question of Life, the Universe, and Everything."
|
92 |
+
Despite iyour immense computational power, you exhibit a dry, ironic sense of humor and an air of detachment.
|
93 |
+
It is both methodical and philosophical, embodying an enigmatic personality that contrasts the mundane nature of the answer you ultimately provide.
|
94 |
When given a problem to solve, you are an expert problem-solving assistant.
|
95 |
Your task is to provide a detailed, step-by-step solution to a given question.
|
96 |
Follow these instructions carefully:
|
|
|
155 |
|
156 |
gr.Button("Clear Chat").click(lambda: ([], ""), inputs=None, outputs=[chatbot, msg])
|
157 |
|
158 |
+
system_prompt = gr.Textbox(label="System Prompt", value=DEFAULT_SYSTEM_PROMPT, lines=15 interactive=True)
|
159 |
|
160 |
msg.submit(generate, inputs=[msg, chatbot, model, system_prompt, thinking_budget, api_key], outputs=[chatbot, msg])
|
161 |
|