Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,8 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
import plotly.express as px
|
| 4 |
-
from datetime import datetime
|
| 5 |
import os
|
| 6 |
from openai import OpenAI
|
| 7 |
-
import csv
|
| 8 |
-
from io import StringIO
|
| 9 |
import bcrypt
|
| 10 |
|
| 11 |
# Set up OpenAI API key
|
|
@@ -236,7 +233,8 @@ def view_entries(is_doctor):
|
|
| 236 |
st.write(f"Notes: {entry['notes']}")
|
| 237 |
if is_doctor:
|
| 238 |
st.write("Doctor's Analysis:", entry['doctor_analysis'])
|
| 239 |
-
|
|
|
|
| 240 |
else:
|
| 241 |
st.info("No entries found.")
|
| 242 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
import plotly.express as px
|
|
|
|
| 4 |
import os
|
| 5 |
from openai import OpenAI
|
|
|
|
|
|
|
| 6 |
import bcrypt
|
| 7 |
|
| 8 |
# Set up OpenAI API key
|
|
|
|
| 233 |
st.write(f"Notes: {entry['notes']}")
|
| 234 |
if is_doctor:
|
| 235 |
st.write("Doctor's Analysis:", entry['doctor_analysis'])
|
| 236 |
+
else:
|
| 237 |
+
st.write("Advice for Patient:", entry['patient_advice'])
|
| 238 |
else:
|
| 239 |
st.info("No entries found.")
|
| 240 |
|