alex-abb commited on
Commit
e9b5756
·
verified ·
1 Parent(s): 6231ee3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,6 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
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"),
@@ -65,6 +64,7 @@ demo = gr.ChatInterface(
65
 
66
  ),
67
  ],
 
68
 
69
  )
70
 
 
52
  demo = gr.ChatInterface(
53
  respond,
54
  additional_inputs=[
 
55
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
56
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
57
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
 
64
 
65
  ),
66
  ],
67
+ output=gr.outputs.Textbox(show_copy_button=True) # Ajout de l'option pour afficher le bouton de copie dans la sortie
68
 
69
  )
70