chansung commited on
Commit
57158d4
1 Parent(s): ea98afb

Update app/ui.py

Browse files
Files changed (1) hide show
  1. app/ui.py +2 -2
app/ui.py CHANGED
@@ -1,5 +1,5 @@
1
  from gen.openllm import (
2
- chat,
3
  translate_messages,
4
  )
5
 
@@ -8,6 +8,6 @@ async def chat(message, history):
8
  messages.append({"role":"user", "content":message})
9
 
10
  full_resp = ""
11
- async for resp in chat(messages, history):
12
  full_resp = full_resp + resp
13
  yield full_resp
 
1
  from gen.openllm import (
2
+ gen_chat,
3
  translate_messages,
4
  )
5
 
 
8
  messages.append({"role":"user", "content":message})
9
 
10
  full_resp = ""
11
+ async for resp in gen_chat(messages):
12
  full_resp = full_resp + resp
13
  yield full_resp