Spaces:
Sleeping
Sleeping
jocko
commited on
Commit
·
a9986c4
1
Parent(s):
9b173a8
merging code
Browse files- src/streamlit_app.py +10 -2
src/streamlit_app.py
CHANGED
@@ -143,8 +143,17 @@ TEXT_COLUMN = "complaints" # or "general_complaint", depending on your needs
|
|
143 |
st.title("🩺 Multimodal Medical Chatbot")
|
144 |
|
145 |
query = st.text_input("Enter your medical question or symptom description:")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
|
147 |
-
if query:
|
148 |
with st.spinner("Searching medical cases..."):
|
149 |
|
150 |
|
@@ -169,7 +178,6 @@ if query:
|
|
169 |
st.warning("OpenAI API key not found. Please set OPENAI_API_KEY as a secret environment variable.")
|
170 |
|
171 |
|
172 |
-
uploaded_files = st.file_uploader("Upload an image to find similar medical cases:", type=["png", "jpg", "jpeg"], accept_multiple_files=True)
|
173 |
|
174 |
if uploaded_files is not None:
|
175 |
with st.spinner("Searching medical cases..."):
|
|
|
143 |
st.title("🩺 Multimodal Medical Chatbot")
|
144 |
|
145 |
query = st.text_input("Enter your medical question or symptom description:")
|
146 |
+
uploaded_files = st.file_uploader("Upload an image to find similar medical cases:", type=["png", "jpg", "jpeg"], accept_multiple_files=True)
|
147 |
+
|
148 |
+
# Add author info in the sidebar
|
149 |
+
with st.sidebar:
|
150 |
+
st.markdown("## 👤👤Authors")
|
151 |
+
st.markdown("**Vasan Iyer**")
|
152 |
+
st.markdown("**Eric J Giacomucci**")
|
153 |
+
st.markdown("[GitHub](https://github.com/Vaiy108)")
|
154 |
+
st.markdown("[LinkedIn](https://linkedin.com/in/vasan-iyer)")
|
155 |
|
156 |
+
if st.button("Submit") and query:
|
157 |
with st.spinner("Searching medical cases..."):
|
158 |
|
159 |
|
|
|
178 |
st.warning("OpenAI API key not found. Please set OPENAI_API_KEY as a secret environment variable.")
|
179 |
|
180 |
|
|
|
181 |
|
182 |
if uploaded_files is not None:
|
183 |
with st.spinner("Searching medical cases..."):
|