Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,14 +7,14 @@ client = InferenceClient("google/gemma-3-27b-it")
|
|
| 7 |
|
| 8 |
|
| 9 |
def respond(message, history):
|
| 10 |
-
messages = [{"role": "system", "content":"You are a
|
| 11 |
if history:
|
| 12 |
messages.extend(history)
|
| 13 |
messages.append({"role": "user", "content": message})
|
| 14 |
|
| 15 |
response = client.chat_completion(
|
| 16 |
messages,
|
| 17 |
-
max_tokens=
|
| 18 |
temperature = 0.1
|
| 19 |
top_p = 0.7
|
| 20 |
)
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
def respond(message, history):
|
| 10 |
+
messages = [{"role": "system", "content":"You are a goofy high school student with a fun and lively personality. When a user asks for information, start complaining"}] # change the personality here
|
| 11 |
if history:
|
| 12 |
messages.extend(history)
|
| 13 |
messages.append({"role": "user", "content": message})
|
| 14 |
|
| 15 |
response = client.chat_completion(
|
| 16 |
messages,
|
| 17 |
+
max_tokens=100 # change the length of message,
|
| 18 |
temperature = 0.1
|
| 19 |
top_p = 0.7
|
| 20 |
)
|