Spaces:
Sleeping
Sleeping
Commit
·
c8b6571
1
Parent(s):
5cfff76
Implement Cohere API
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import cohere
|
|
6 |
"""
|
7 |
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
|
8 |
"""
|
9 |
-
client = InferenceClient("
|
10 |
COHERE_API_KEY = os.getenv("COHERE_API_KEY")
|
11 |
client_cohere = cohere.Client(COHERE_API_KEY)
|
12 |
COHERE_MODEL = "command-r-plus"
|
@@ -70,7 +70,7 @@ demo = gr.ChatInterface(
|
|
70 |
step=0.05,
|
71 |
label="Top-p (nucleus sampling)",
|
72 |
),
|
73 |
-
gr.Checkbox(label="Use Cohere API"
|
74 |
],
|
75 |
)
|
76 |
|
|
|
6 |
"""
|
7 |
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
|
8 |
"""
|
9 |
+
client = InferenceClient("meta-llama/Llama-3.2-3B-Instruct")
|
10 |
COHERE_API_KEY = os.getenv("COHERE_API_KEY")
|
11 |
client_cohere = cohere.Client(COHERE_API_KEY)
|
12 |
COHERE_MODEL = "command-r-plus"
|
|
|
70 |
step=0.05,
|
71 |
label="Top-p (nucleus sampling)",
|
72 |
),
|
73 |
+
gr.Checkbox(label="Use Cohere API"),
|
74 |
],
|
75 |
)
|
76 |
|