artificialguybr commited on
Commit
421426b
1 Parent(s): e298b33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -42,7 +42,6 @@ def regenerate(chatbot, chat_history_state, system_msg, max_tokens, temperature,
42
  return new_history, new_history, ""
43
 
44
 
45
-
46
  def chat(history, system_message, max_tokens, temperature, top_p, top_k, repetition_penalty):
47
  print(f"Chat function called with history: {history}")
48
  history = history or []
@@ -115,7 +114,7 @@ with gr.Blocks() as demo:
115
  with gr.Row():
116
  with gr.Column():
117
  max_tokens = gr.Slider(20, 2500, label="Max Tokens", step=20, value=500)
118
- temperature = gr.Slider(0.0, 2.0, label="Temperature", step=0.1, value=0.4)
119
  top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.95)
120
  top_k = gr.Slider(1, 100, label="Top K", step=1, value=40)
121
  repetition_penalty = gr.Slider(1.0, 2.0, label="Repetition Penalty", step=0.1, value=1.1)
 
42
  return new_history, new_history, ""
43
 
44
 
 
45
  def chat(history, system_message, max_tokens, temperature, top_p, top_k, repetition_penalty):
46
  print(f"Chat function called with history: {history}")
47
  history = history or []
 
114
  with gr.Row():
115
  with gr.Column():
116
  max_tokens = gr.Slider(20, 2500, label="Max Tokens", step=20, value=500)
117
+ temperature = gr.Slider(0.0, 2.0, label="Temperature", step=0.1, value=0.7)
118
  top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.95)
119
  top_k = gr.Slider(1, 100, label="Top K", step=1, value=40)
120
  repetition_penalty = gr.Slider(1.0, 2.0, label="Repetition Penalty", step=0.1, value=1.1)