roneymatusp commited on
Commit
0ac3d7f
·
verified ·
1 Parent(s): 4b69f93

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -76,12 +76,15 @@ def respond(message, history):
76
  # handles conversation state and displays the chat history. We specify
77
  # custom labels for the submit and clear buttons to localise them for
78
  # Portuguese-speaking teachers.
 
 
 
 
79
  demo = gr.ChatInterface(
80
  fn=respond,
81
  title="Paulean AI – British Prompt Optimizer",
82
  description="Escreva sua pergunta/prompt. O modelo responde em estilo British 🇬🇧.",
83
  submit_btn="Enviar",
84
- clear_btn="Limpar conversa",
85
  )
86
 
87
  # Launch the demo when run directly. Queuing is enabled to properly
 
76
  # handles conversation state and displays the chat history. We specify
77
  # custom labels for the submit and clear buttons to localise them for
78
  # Portuguese-speaking teachers.
79
+ # Instantiate the ChatInterface. Note: Gradio versions prior to 4.42
80
+ # do not support a `clear_btn` keyword argument, so only the
81
+ # `submit_btn` label is customised here. The default clear button
82
+ # provided by ChatInterface will remain in English.
83
  demo = gr.ChatInterface(
84
  fn=respond,
85
  title="Paulean AI – British Prompt Optimizer",
86
  description="Escreva sua pergunta/prompt. O modelo responde em estilo British 🇬🇧.",
87
  submit_btn="Enviar",
 
88
  )
89
 
90
  # Launch the demo when run directly. Queuing is enabled to properly