Spaces:
Sleeping
Sleeping
Update app/main.py
Browse files- 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=[
|
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 |
)
|