Tomoniai commited on
Commit
fdc40ec
1 Parent(s): a000d3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ def format_prompt(message, history):
12
  return prompt
13
 
14
  def generate(
15
- prompt, history, system_prompt, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,
16
  ):
17
  temperature = float(temperature)
18
  if temperature < 1e-2:
@@ -40,7 +40,7 @@ def generate(
40
  return output
41
 
42
  mychatbot = gr.Chatbot(
43
- avatar_images=["./user.png", "./botm.png"], bubble_full_width=False, show_label=False, show_share_button=False, show_copy_button=True, likeable=True)
44
 
45
  demo = gr.ChatInterface(fn=generate,
46
  chatbot=mychatbot,
 
12
  return prompt
13
 
14
  def generate(
15
+ prompt, history, system_prompt, temperature=0.3, max_new_tokens=256, top_p=0.9, repetition_penalty=1.0,
16
  ):
17
  temperature = float(temperature)
18
  if temperature < 1e-2:
 
40
  return output
41
 
42
  mychatbot = gr.Chatbot(
43
+ avatar_images=["./user.png", "./botm.png"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=True)
44
 
45
  demo = gr.ChatInterface(fn=generate,
46
  chatbot=mychatbot,