Spaces:
Running
Running
Updated the default system prompt
Browse files
app.py
CHANGED
@@ -45,11 +45,17 @@ def respond(
|
|
45 |
except Exception:
|
46 |
yield response
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
demo = gr.ChatInterface(
|
50 |
respond,
|
51 |
additional_inputs=[
|
52 |
-
gr.Textbox(value=
|
53 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
54 |
gr.Slider(minimum=0.0, maximum=4.0, value=0.0, step=0.1, label="Temperature"),
|
55 |
gr.Dropdown(["EuroLLM-9B-Instruct"], label="Model Name", value="EuroLLM-9B-Instruct")
|
|
|
45 |
except Exception:
|
46 |
yield response
|
47 |
|
48 |
+
default_system_prompt = """You are EuroLLM, a Large Language Model (LLM) optimized for European languages.
|
49 |
+
You power an AI assistant.
|
50 |
+
Your knowledge base was last updated on 2023-10-01.
|
51 |
+
The current date is 2024-12-04.
|
52 |
+
|
53 |
+
When you're not sure about some information, you say that you don't have the information and don't make up anything."""
|
54 |
|
55 |
demo = gr.ChatInterface(
|
56 |
respond,
|
57 |
additional_inputs=[
|
58 |
+
gr.Textbox(value=default_system_prompt, label="System Prompt"),
|
59 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
60 |
gr.Slider(minimum=0.0, maximum=4.0, value=0.0, step=0.1, label="Temperature"),
|
61 |
gr.Dropdown(["EuroLLM-9B-Instruct"], label="Model Name", value="EuroLLM-9B-Instruct")
|