ColeGuion commited on
Commit
e9119a7
1 Parent(s): 22ed543

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -46,8 +46,9 @@ def respond(message, history, max_length, min_length, max_new_tokens, num_beams,
46
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
47
  """
48
  demo = gr.ChatInterface(
49
- respond,
50
- examples=["we shood buy an car.", "she is more taller"],
 
51
  additional_inputs=[
52
  #gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
53
  gr.Slider(minimum=1, maximum=256, value=100, step=1, label="Max Length"),
 
46
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
47
  """
48
  demo = gr.ChatInterface(
49
+ fn=respond,
50
+ examples=[{"text": "hello"}, {"text": "hola"}, {"text": "merhaba"}],
51
+ title="Echo Bot",
52
  additional_inputs=[
53
  #gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
54
  gr.Slider(minimum=1, maximum=256, value=100, step=1, label="Max Length"),