Update app.py
Browse files
app.py
CHANGED
|
@@ -88,7 +88,7 @@ def respond(
|
|
| 88 |
# Create the agent
|
| 89 |
agent = LlamaCppAgent(
|
| 90 |
provider,
|
| 91 |
-
system_prompt=f"{system_message}",
|
| 92 |
predefined_messages_formatter_type=MessagesFormatterType.GEMMA2,
|
| 93 |
debug_output=True,
|
| 94 |
)
|
|
@@ -152,12 +152,12 @@ demo = gr.ChatInterface(
|
|
| 152 |
label="Model",
|
| 153 |
info="Select the AI model to use for chat",
|
| 154 |
),
|
| 155 |
-
gr.Textbox(
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
),
|
| 161 |
gr.Slider(
|
| 162 |
minimum=512,
|
| 163 |
maximum=2048,
|
|
|
|
| 88 |
# Create the agent
|
| 89 |
agent = LlamaCppAgent(
|
| 90 |
provider,
|
| 91 |
+
# system_prompt=f"{system_message}",
|
| 92 |
predefined_messages_formatter_type=MessagesFormatterType.GEMMA2,
|
| 93 |
debug_output=True,
|
| 94 |
)
|
|
|
|
| 152 |
label="Model",
|
| 153 |
info="Select the AI model to use for chat",
|
| 154 |
),
|
| 155 |
+
# gr.Textbox(
|
| 156 |
+
# value="You are a helpful AI assistant focused on accurate and ethical responses.",
|
| 157 |
+
# label="System Prompt",
|
| 158 |
+
# info="Define the AI assistant's personality and behavior",
|
| 159 |
+
# lines=2,
|
| 160 |
+
# ),
|
| 161 |
gr.Slider(
|
| 162 |
minimum=512,
|
| 163 |
maximum=2048,
|