Alejandro Rodriguez Salamanca commited on
Commit
5f9ebcb
·
1 Parent(s): 59c19dd

change default temperatute to 0.1

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,7 +41,7 @@ def generate(
41
  message: str,
42
  history: list[dict],
43
  system_prompt: str = "",
44
- temperature: float = 0.3,
45
  max_new_tokens: int = 700,
46
  ) -> Iterator[str]:
47
  """Stream a response from the Cohere API for the given message and conversation history."""
@@ -142,7 +142,7 @@ demo = gr.ChatInterface(
142
  placeholder="e.g. You are a helpful multilingual assistant. Always respond in the user's language.",
143
  lines=3,
144
  ),
145
- gr.Slider(label="Temperature", minimum=0.0, maximum=1.0, step=0.05, value=0.3),
146
  gr.Slider(label="Max New Tokens", minimum=100, maximum=2000, step=10, value=700),
147
  ],
148
  stop_btn=False,
 
41
  message: str,
42
  history: list[dict],
43
  system_prompt: str = "",
44
+ temperature: float = 0.1,
45
  max_new_tokens: int = 700,
46
  ) -> Iterator[str]:
47
  """Stream a response from the Cohere API for the given message and conversation history."""
 
142
  placeholder="e.g. You are a helpful multilingual assistant. Always respond in the user's language.",
143
  lines=3,
144
  ),
145
+ gr.Slider(label="Temperature", minimum=0.0, maximum=1.0, step=0.05, value=0.1),
146
  gr.Slider(label="Max New Tokens", minimum=100, maximum=2000, step=10, value=700),
147
  ],
148
  stop_btn=False,