anaspro
commited on
Commit
·
2882371
1
Parent(s):
2ccdde1
updatE
Browse files
app.py
CHANGED
|
@@ -199,11 +199,11 @@ def generate(message: dict, history: list[dict], system_prompt: str = "", max_ne
|
|
| 199 |
yield output
|
| 200 |
|
| 201 |
|
| 202 |
-
#
|
| 203 |
examples = [
|
| 204 |
-
"What is the capital of France?",
|
| 205 |
-
"Explain quantum computing in simple terms",
|
| 206 |
-
"Write a short story about a robot learning to paint"
|
| 207 |
]
|
| 208 |
|
| 209 |
# Create the chat interface
|
|
|
|
| 199 |
yield output
|
| 200 |
|
| 201 |
|
| 202 |
+
# Examples for the chat interface (with additional inputs: system_prompt, max_new_tokens)
|
| 203 |
examples = [
|
| 204 |
+
["What is the capital of France?", "You are a helpful assistant.", 700],
|
| 205 |
+
["Explain quantum computing in simple terms", "You are a helpful assistant.", 512],
|
| 206 |
+
["Write a short story about a robot learning to paint", "You are a helpful assistant.", 1000]
|
| 207 |
]
|
| 208 |
|
| 209 |
# Create the chat interface
|