rodrigomasini
commited on
Commit
•
7bb20e3
1
Parent(s):
c33cb47
Delete app/ui.py
Browse files
app/ui.py
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
from gen.openllm import (
|
2 |
-
gen_chat,
|
3 |
-
translate_messages,
|
4 |
-
)
|
5 |
-
|
6 |
-
async def chat(message, history):
|
7 |
-
messages = translate_messages(history)
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|