Commit
•
dc8dce7
1
Parent(s):
dcf8d80
Debugging, will experiment with using streamlit instead of chainlit. Reading in user question.
Browse filesAlso added # in front of
@cl
.on_chat_start line, as the output from last version still seems to be trying to start chainlit.
app.py
CHANGED
@@ -64,9 +64,13 @@ def final_result(query):
|
|
64 |
|
65 |
st.header("Hospital Regulatory Chat - :hospital:")
|
66 |
|
|
|
|
|
|
|
|
|
67 |
'''
|
68 |
#chainlit code
|
69 |
-
|
70 |
async def start():
|
71 |
chain = qa_bot()
|
72 |
msg = cl.Message(content="Starting the bot...")
|
|
|
64 |
|
65 |
st.header("Hospital Regulatory Chat - :hospital:")
|
66 |
|
67 |
+
user_question = st.text_input("Ask your question:")
|
68 |
+
if user_question:
|
69 |
+
st.write("Your Question: ",user_question)
|
70 |
+
|
71 |
'''
|
72 |
#chainlit code
|
73 |
+
#@cl.on_chat_start
|
74 |
async def start():
|
75 |
chain = qa_bot()
|
76 |
msg = cl.Message(content="Starting the bot...")
|