Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -304,7 +304,7 @@ with col3:
|
|
| 304 |
col3.subheader("Copilot Concept")
|
| 305 |
question = st.text_input("Ask a question to Copilot:")
|
| 306 |
grounded = st.selectbox('Would you like to ground the model?', ('Not Grounded', 'Text Analytics for Health', 'Just Text Input', 'Both'))
|
| 307 |
-
model = st.selectbox("Model", ["gpt-
|
| 308 |
ask = st.button("Ask")
|
| 309 |
report_btn = st.button("Generate SDOH Report")
|
| 310 |
if report_btn:
|
|
@@ -336,7 +336,7 @@ with col3:
|
|
| 336 |
engine=model,
|
| 337 |
messages = [{"role":"system","content":f"You are an AI assistant that helps doctors find information in complex structured data below. Answer the question directly and very briefly using the data provided. \n Question: {question}, if you do not have information below to answer it, state that you can't answer the question with the information you have been given. "}, {"role": "user", "content" : f"data: ``` {total_text} ```"}],
|
| 338 |
temperature=0,
|
| 339 |
-
max_tokens=
|
| 340 |
top_p=0.95,
|
| 341 |
frequency_penalty=0,
|
| 342 |
presence_penalty=0,
|
|
|
|
| 304 |
col3.subheader("Copilot Concept")
|
| 305 |
question = st.text_input("Ask a question to Copilot:")
|
| 306 |
grounded = st.selectbox('Would you like to ground the model?', ('Not Grounded', 'Text Analytics for Health', 'Just Text Input', 'Both'))
|
| 307 |
+
model = st.selectbox("Model", ["gpt-4o"])
|
| 308 |
ask = st.button("Ask")
|
| 309 |
report_btn = st.button("Generate SDOH Report")
|
| 310 |
if report_btn:
|
|
|
|
| 336 |
engine=model,
|
| 337 |
messages = [{"role":"system","content":f"You are an AI assistant that helps doctors find information in complex structured data below. Answer the question directly and very briefly using the data provided. \n Question: {question}, if you do not have information below to answer it, state that you can't answer the question with the information you have been given. "}, {"role": "user", "content" : f"data: ``` {total_text} ```"}],
|
| 338 |
temperature=0,
|
| 339 |
+
max_tokens=300,
|
| 340 |
top_p=0.95,
|
| 341 |
frequency_penalty=0,
|
| 342 |
presence_penalty=0,
|