Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def client_fn(model):
|
|
14 |
else:
|
15 |
return InferenceClient("microsoft/Phi-3-mini-4k-instruct")
|
16 |
|
17 |
-
system_instructions1 = "[SYSTEM]
|
18 |
|
19 |
def models(text, model="Mixtral 8x7B"):
|
20 |
|
@@ -24,7 +24,7 @@ def models(text, model="Mixtral 8x7B"):
|
|
24 |
max_new_tokens=300,
|
25 |
)
|
26 |
|
27 |
-
formatted_prompt = system_instructions1 + text + "[
|
28 |
stream = client.text_generation(
|
29 |
formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
30 |
output = ""
|
|
|
14 |
else:
|
15 |
return InferenceClient("microsoft/Phi-3-mini-4k-instruct")
|
16 |
|
17 |
+
system_instructions1 = "[SYSTEM] Your task is to Answer the question. Keep conversation very short, clear and concise. The expectation is that you will avoid introductions and start answering the query directly, Only answer the question asked by user, Do not say unnecessary things.[QUESTION]"
|
18 |
|
19 |
def models(text, model="Mixtral 8x7B"):
|
20 |
|
|
|
24 |
max_new_tokens=300,
|
25 |
)
|
26 |
|
27 |
+
formatted_prompt = system_instructions1 + text + "[ANSWER]"
|
28 |
stream = client.text_generation(
|
29 |
formatted_prompt, **generate_kwargs, stream=True, details=True, return_full_text=False)
|
30 |
output = ""
|