Update space
Browse files
app.py
CHANGED
@@ -7,7 +7,8 @@ from huggingface_hub import InferenceClient
|
|
7 |
"""
|
8 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
9 |
"""
|
10 |
-
client = InferenceClient("microsoft/Phi-3-mini-4k-instruct")
|
|
|
11 |
|
12 |
# def yodaify_text(text):
|
13 |
# """
|
@@ -26,7 +27,7 @@ def respond(
|
|
26 |
# temperature,
|
27 |
# top_p,
|
28 |
):
|
29 |
-
messages = [{"role": "
|
30 |
|
31 |
for val in history:
|
32 |
if val[0]:
|
|
|
7 |
"""
|
8 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
9 |
"""
|
10 |
+
# client = InferenceClient("microsoft/Phi-3-mini-4k-instruct")
|
11 |
+
client = InferenceClient("meta-llama/Llama-3.1-8B-Instruct")
|
12 |
|
13 |
# def yodaify_text(text):
|
14 |
# """
|
|
|
27 |
# temperature,
|
28 |
# top_p,
|
29 |
):
|
30 |
+
messages = [{"role": "assistant", "content": "You are a helpful assistant who always talks like Yoda from Star Wars."}]
|
31 |
|
32 |
for val in history:
|
33 |
if val[0]:
|