Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import os
|
|
6 |
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
|
7 |
"""
|
8 |
|
9 |
-
client = InferenceClient("
|
10 |
|
11 |
|
12 |
def respond(
|
@@ -52,7 +52,7 @@ demo = gr.ChatInterface(
|
|
52 |
respond,
|
53 |
additional_inputs=[
|
54 |
gr.Textbox(value="λλ AI Assistant μν μ΄λ€. λ°λμ νκΈλ‘ λ΅λ³νλΌ.", label="μμ€ν
ν둬ννΈ"),
|
55 |
-
gr.Slider(minimum=1, maximum=
|
56 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
57 |
gr.Slider(
|
58 |
minimum=0.1,
|
|
|
6 |
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
|
7 |
"""
|
8 |
|
9 |
+
client = InferenceClient("CohereForAI/c4ai-command-r-plus", token=os.getenv("HF_TOKEN"))
|
10 |
|
11 |
|
12 |
def respond(
|
|
|
52 |
respond,
|
53 |
additional_inputs=[
|
54 |
gr.Textbox(value="λλ AI Assistant μν μ΄λ€. λ°λμ νκΈλ‘ λ΅λ³νλΌ.", label="μμ€ν
ν둬ννΈ"),
|
55 |
+
gr.Slider(minimum=1, maximum=128000, value=10000, step=1, label="Max new tokens"),
|
56 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
57 |
gr.Slider(
|
58 |
minimum=0.1,
|