chansung commited on
Commit
1f4fa87
1 Parent(s): 6ada2c7

Update app/main.py

Browse files
Files changed (1) hide show
  1. app/main.py +2 -2
app/main.py CHANGED
@@ -39,7 +39,7 @@ def _translate_messages(history):
39
  async def echo(message, history):
40
  parameters = _default_parameters()
41
  messages = _translate_messages(history)
42
- messages.append()
43
 
44
  history.append([message, ""])
45
  full_resp = ""
@@ -52,7 +52,7 @@ async def echo(message, history):
52
 
53
  demo = gr.ChatInterface(
54
  fn=echo,
55
- examples=[{"text": "hello"}, {"text": "hola"}, {"text": "merhaba"}],
56
  title="Echo Bot",
57
  multimodal=False
58
  )
 
39
  async def echo(message, history):
40
  parameters = _default_parameters()
41
  messages = _translate_messages(history)
42
+ messages.append({"role":"user", "content":message})
43
 
44
  history.append([message, ""])
45
  full_resp = ""
 
52
 
53
  demo = gr.ChatInterface(
54
  fn=echo,
55
+ examples=["hello", "hola", "merhaba"],
56
  title="Echo Bot",
57
  multimodal=False
58
  )