updated
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import chainlit as cl
|
2 |
import logging
|
3 |
import sys
|
@@ -22,7 +23,7 @@ from semantic import (
|
|
22 |
_semantic_rag_chain: RunnableSequence = None
|
23 |
|
24 |
@cl.on_message
|
25 |
-
async def main(message:
|
26 |
|
27 |
content = "> "
|
28 |
try:
|
@@ -43,11 +44,11 @@ async def start():
|
|
43 |
global _semantic_rag_chain
|
44 |
# _semantic_rag_chain = SemanticRAGChainFactory.get_semantic_rag_chain()
|
45 |
|
46 |
-
# await
|
47 |
# name="Chatbot",
|
48 |
# url="https://cdn-icons-png.flaticon.com/512/8649/8649595.png"
|
49 |
# ).send()
|
50 |
-
# await
|
51 |
# name="User",
|
52 |
# url="https://media.architecturaldigest.com/photos/5f241de2c850b2a36b415024/master/w_1600%2Cc_limit/Luke-logo.png"
|
53 |
# ).send()
|
|
|
1 |
+
import streamlit as st
|
2 |
import chainlit as cl
|
3 |
import logging
|
4 |
import sys
|
|
|
23 |
_semantic_rag_chain: RunnableSequence = None
|
24 |
|
25 |
@cl.on_message
|
26 |
+
async def main(message: st.Message):
|
27 |
|
28 |
content = "> "
|
29 |
try:
|
|
|
44 |
global _semantic_rag_chain
|
45 |
# _semantic_rag_chain = SemanticRAGChainFactory.get_semantic_rag_chain()
|
46 |
|
47 |
+
# await st.Avatar(
|
48 |
# name="Chatbot",
|
49 |
# url="https://cdn-icons-png.flaticon.com/512/8649/8649595.png"
|
50 |
# ).send()
|
51 |
+
# await st.Avatar(
|
52 |
# name="User",
|
53 |
# url="https://media.architecturaldigest.com/photos/5f241de2c850b2a36b415024/master/w_1600%2Cc_limit/Luke-logo.png"
|
54 |
# ).send()
|