aiqtech commited on
Commit
db9b232
β€’
1 Parent(s): bcc24a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("meta-llama/Meta-Llama-3-70B-Instruct", token=os.getenv("HF_TOKEN"))
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=8000, value=2048, 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,
 
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,