Spaces:
Runtime error
Runtime error
test
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ client = InferenceClient(
|
|
| 6 |
)
|
| 7 |
|
| 8 |
# Your system prompt
|
| 9 |
-
SYSTEM_PROMPT = "You are a professional
|
| 10 |
|
| 11 |
def format_prompt(message, history):
|
| 12 |
prompt = "<s>"
|
|
@@ -56,7 +56,7 @@ additional_inputs=[
|
|
| 56 |
),
|
| 57 |
gr.Slider(
|
| 58 |
label="Max new tokens",
|
| 59 |
-
value=
|
| 60 |
minimum=0,
|
| 61 |
maximum=1048,
|
| 62 |
step=64,
|
|
|
|
| 6 |
)
|
| 7 |
|
| 8 |
# Your system prompt
|
| 9 |
+
SYSTEM_PROMPT = "You are a professional question answerer, your goal is to answer any of the users questions concisely and accurately."
|
| 10 |
|
| 11 |
def format_prompt(message, history):
|
| 12 |
prompt = "<s>"
|
|
|
|
| 56 |
),
|
| 57 |
gr.Slider(
|
| 58 |
label="Max new tokens",
|
| 59 |
+
value=512,
|
| 60 |
minimum=0,
|
| 61 |
maximum=1048,
|
| 62 |
step=64,
|