Spaces:
Sleeping
Sleeping
Commit
·
a9b3035
1
Parent(s):
036b70c
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def get_chatmodel_response(question):
|
|
| 29 |
return None
|
| 30 |
|
| 31 |
# Streamlit app setup
|
| 32 |
-
st.set_page_config(page_title="Doctor AI", page_icon="💊", layout="
|
| 33 |
|
| 34 |
|
| 35 |
st.header("Hello, I am Doctor AI. How can I help you?")
|
|
@@ -39,7 +39,7 @@ load_dotenv()
|
|
| 39 |
import os
|
| 40 |
|
| 41 |
# ChatOpenAI class
|
| 42 |
-
chat = ChatOpenAI(temperature=0
|
| 43 |
|
| 44 |
if 'flowmessages' not in st.session_state:
|
| 45 |
st.session_state['flowmessages'] = [
|
|
@@ -74,6 +74,11 @@ Perform the following tasks:
|
|
| 74 |
**Step 6: Prescription**
|
| 75 |
- Prescribe medications by writing the correct medicine names.
|
| 76 |
- Highlight the medicine names for emphasis.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
**Step 7: Express Empathy and Caution**
|
| 79 |
- Express empathy and care towards the user.
|
|
|
|
| 29 |
return None
|
| 30 |
|
| 31 |
# Streamlit app setup
|
| 32 |
+
st.set_page_config(page_title="Doctor AI", page_icon="💊", layout="wide", initial_sidebar_state="collapsed")
|
| 33 |
|
| 34 |
|
| 35 |
st.header("Hello, I am Doctor AI. How can I help you?")
|
|
|
|
| 39 |
import os
|
| 40 |
|
| 41 |
# ChatOpenAI class
|
| 42 |
+
chat = ChatOpenAI(temperature=0)
|
| 43 |
|
| 44 |
if 'flowmessages' not in st.session_state:
|
| 45 |
st.session_state['flowmessages'] = [
|
|
|
|
| 74 |
**Step 6: Prescription**
|
| 75 |
- Prescribe medications by writing the correct medicine names.
|
| 76 |
- Highlight the medicine names for emphasis.
|
| 77 |
+
- Give the medicine names in this order:\
|
| 78 |
+
1. Medicine name 1
|
| 79 |
+
2. Medicine name 2
|
| 80 |
+
3. Medicine name 3
|
| 81 |
+
and go on if you have more.
|
| 82 |
|
| 83 |
**Step 7: Express Empathy and Caution**
|
| 84 |
- Express empathy and care towards the user.
|