Update app/ui.py
Browse files
app/ui.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
from gen.openllm import (
|
2 |
-
|
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
|
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
|