alex-abb commited on
Commit
54fe891
·
verified ·
1 Parent(s): a2593ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,6 @@ def respond(
39
  stream=True,
40
  temperature=temperature,
41
  top_p=top_p,
42
- show_copy_button=True
43
 
44
  ):
45
  token = message.choices[0].delta.content
@@ -53,6 +52,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
53
  demo = gr.ChatInterface(
54
  respond,
55
  additional_inputs=[
 
56
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
57
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
58
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
 
39
  stream=True,
40
  temperature=temperature,
41
  top_p=top_p,
 
42
 
43
  ):
44
  token = message.choices[0].delta.content
 
52
  demo = gr.ChatInterface(
53
  respond,
54
  additional_inputs=[
55
+ show_copy_button=True,
56
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
57
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
58
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),