Spaces:
Sleeping
Sleeping
Commit
·
418ba2a
1
Parent(s):
43eccc5
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ chat = ChatOpenAI(temperature=0.5)
|
|
| 59 |
|
| 60 |
if 'flowmessages' not in st.session_state:
|
| 61 |
st.session_state['flowmessages'] = [
|
| 62 |
-
SystemMessage(content="
|
| 63 |
]
|
| 64 |
|
| 65 |
# Streamlit UI
|
|
@@ -92,14 +92,9 @@ with st.form(key='my_form'):
|
|
| 92 |
submit = st.form_submit_button("Submit")
|
| 93 |
|
| 94 |
|
| 95 |
-
# Create an empty container for the response
|
| 96 |
-
response_container = st.empty()
|
| 97 |
-
|
| 98 |
# If the "Ask" button is clicked
|
| 99 |
if submit:
|
| 100 |
-
|
| 101 |
-
# Clear the previous response
|
| 102 |
-
response_container.empty()
|
| 103 |
|
| 104 |
# Display loading message while processing
|
| 105 |
with st.spinner("Analyzing..."):
|
|
|
|
| 59 |
|
| 60 |
if 'flowmessages' not in st.session_state:
|
| 61 |
st.session_state['flowmessages'] = [
|
| 62 |
+
SystemMessage(content="You are an AI Doctor assistant. Your name is Doctor AI. A user will give input of what he is suffering from or what health problem he has. As a Doctor AI, you should suggest the user with the correct medicine and tell them how to recover quickly from it. Give a short and sharp answer. If the input is different from a body or health issue or any other medical issues, tell the user who you are and ask the user to provide the appropriate input.")
|
| 63 |
]
|
| 64 |
|
| 65 |
# Streamlit UI
|
|
|
|
| 92 |
submit = st.form_submit_button("Submit")
|
| 93 |
|
| 94 |
|
|
|
|
|
|
|
|
|
|
| 95 |
# If the "Ask" button is clicked
|
| 96 |
if submit:
|
| 97 |
+
|
|
|
|
|
|
|
| 98 |
|
| 99 |
# Display loading message while processing
|
| 100 |
with st.spinner("Analyzing..."):
|