Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,11 +5,11 @@ import random
|
|
5 |
API_URL = "https://api-inference.huggingface.co/models/"
|
6 |
|
7 |
client = InferenceClient(
|
8 |
-
"
|
9 |
)
|
10 |
|
11 |
def format_prompt(message, history):
|
12 |
-
prompt = "
|
13 |
for user_prompt, bot_response in history:
|
14 |
prompt += f"[INST] {user_prompt} [/INST]"
|
15 |
prompt += f" {bot_response}</s> "
|
|
|
5 |
API_URL = "https://api-inference.huggingface.co/models/"
|
6 |
|
7 |
client = InferenceClient(
|
8 |
+
"Qwen/Qwen-1.8B-Chat"
|
9 |
)
|
10 |
|
11 |
def format_prompt(message, history):
|
12 |
+
prompt = "your primary function is to provide helpful and friendly responses to user queries"
|
13 |
for user_prompt, bot_response in history:
|
14 |
prompt += f"[INST] {user_prompt} [/INST]"
|
15 |
prompt += f" {bot_response}</s> "
|