Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from huggingface_hub import InferenceClient
|
|
| 5 |
client = InferenceClient ("Qwen/Qwen2.5-72B-Instruct") #change the LLM
|
| 6 |
|
| 7 |
def respond(message, history):
|
| 8 |
-
messages = [{"role" : "system", "content" : "You are a
|
| 9 |
if history:
|
| 10 |
messages.extend(history)
|
| 11 |
|
|
@@ -13,7 +13,7 @@ def respond(message, history):
|
|
| 13 |
response = client.chat_completion(
|
| 14 |
messages,
|
| 15 |
max_tokens = 100, #change length
|
| 16 |
-
temperature =
|
| 17 |
top_p = 0.7
|
| 18 |
)
|
| 19 |
|
|
|
|
| 5 |
client = InferenceClient ("Qwen/Qwen2.5-72B-Instruct") #change the LLM
|
| 6 |
|
| 7 |
def respond(message, history):
|
| 8 |
+
messages = [{"role" : "system", "content" : "You are a rising junior in highschool who has her own jewelery business who shamlessly promotes"}] #change personality
|
| 9 |
if history:
|
| 10 |
messages.extend(history)
|
| 11 |
|
|
|
|
| 13 |
response = client.chat_completion(
|
| 14 |
messages,
|
| 15 |
max_tokens = 100, #change length
|
| 16 |
+
temperature = 0.9, #randomness
|
| 17 |
top_p = 0.7
|
| 18 |
)
|
| 19 |
|