giovanni correia commited on
Commit
a86c03a
·
verified ·
1 Parent(s): 591f1c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -90,12 +90,10 @@ def generate(
90
  outputs.append(text)
91
  yield "".join(outputs).replace("<|EOT|>", "")
92
 
93
- # Interface de chat Gradio
94
  chat_interface = gr.ChatInterface(
95
  fn=generate,
96
- additional_inputs=[
97
- gr.Textbox(label="System prompt", lines=6, value=DANY_SYSTEM_PROMPT),
98
- ],
99
  stop_btn=None,
100
  examples=[
101
  ["Qui t'a créé et quelles sont tes compétences ?"],
@@ -104,6 +102,7 @@ chat_interface = gr.ChatInterface(
104
  ],
105
  )
106
 
 
107
  # Bloc Gradio
108
  # Bloc Gradio avec style CSS pour cacher "Built with Gradio"
109
  with gr.Blocks(css="""
 
90
  outputs.append(text)
91
  yield "".join(outputs).replace("<|EOT|>", "")
92
 
93
+ # Interface de chat
94
  chat_interface = gr.ChatInterface(
95
  fn=generate,
96
+ additional_inputs=[], # Supprime les inputs supplémentaires
 
 
97
  stop_btn=None,
98
  examples=[
99
  ["Qui t'a créé et quelles sont tes compétences ?"],
 
102
  ],
103
  )
104
 
105
+
106
  # Bloc Gradio
107
  # Bloc Gradio avec style CSS pour cacher "Built with Gradio"
108
  with gr.Blocks(css="""