mkurman commited on
Commit
ddfa581
·
1 Parent(s): bce3ed1

small changes

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ def respond(
35
  messages,
36
  max_tokens=max_tokens,
37
  stream=True,
38
- temperature=temperature if temperature > 0.0 else None,
39
  top_p=top_p,
40
  logprobs=True,
41
  stop=['</Output>']
@@ -72,7 +72,7 @@ demo = gr.ChatInterface(
72
  additional_inputs=[
73
  # gr.Textbox(value="You are a helpful, smart, kind, and efficient AI assistant. You always fulfill the user's requests to the best of your ability. You always think and reflect before providing final answers in a step-by-step manner.", label="System message"),
74
  gr.Slider(minimum=1, maximum=4096, value=2048, step=1, label="Max new tokens"),
75
- gr.Slider(minimum=0.0, maximum=4.0, value=0.0, step=0.1, label="Temperature"),
76
  gr.Slider(
77
  minimum=0.1,
78
  maximum=1.0,
 
35
  messages,
36
  max_tokens=max_tokens,
37
  stream=True,
38
+ temperature=temperature,
39
  top_p=top_p,
40
  logprobs=True,
41
  stop=['</Output>']
 
72
  additional_inputs=[
73
  # gr.Textbox(value="You are a helpful, smart, kind, and efficient AI assistant. You always fulfill the user's requests to the best of your ability. You always think and reflect before providing final answers in a step-by-step manner.", label="System message"),
74
  gr.Slider(minimum=1, maximum=4096, value=2048, step=1, label="Max new tokens"),
75
+ gr.Slider(minimum=0.0, maximum=2.0, value=0.1, step=0.1, label="Temperature"),
76
  gr.Slider(
77
  minimum=0.1,
78
  maximum=1.0,