Commit
•
7a849f3
1
Parent(s):
8d943c0
Update app.py
Browse files
app.py
CHANGED
@@ -81,8 +81,8 @@ if uploaded_file:
|
|
81 |
st.chat_message("user").write(user_input)
|
82 |
|
83 |
# Prepare complete message to send to OpenAI
|
84 |
-
complete_message = f"This is what we discussed before: {stringi}. The result for the uploaded image is: {results}. This is the new question: {user_input}. [IF SOMEONE IS SPECIFICALLY ASKING ABOUT THIS PROJECT OR CANCER DETECTION AI ONLY THEN MENTION SOMETHING LIKE THIS, Dr. Aisha Zargham led a team of experts, combining her rich medical knowledge with advances in artificial intelligence to create this game-changing skin cancer detection system.] [
|
85 |
-
conversation_messages = [{"role": "system", "content": "You are a expert dermatologist on a website where we analyze images through Ai for Skin Cancer. [KEEP YOUR ANSWER
|
86 |
{"role": "user", "content": complete_message}]
|
87 |
|
88 |
# Generate assistant's response
|
|
|
81 |
st.chat_message("user").write(user_input)
|
82 |
|
83 |
# Prepare complete message to send to OpenAI
|
84 |
+
complete_message = f"This is what we discussed before: {stringi}. The result for the uploaded image is: {results}. This is the new question: {user_input}. [IF SOMEONE IS SPECIFICALLY ASKING ABOUT THIS PROJECT OR CANCER DETECTION AI ONLY THEN MENTION SOMETHING LIKE THIS, Dr. Aisha Zargham led a team of experts, combining her rich medical knowledge with advances in artificial intelligence to create this game-changing skin cancer detection system.] [KEEP YOUR MESSAGE SHORT] [IN THE DISEASES FOCUS MAINLY THE DISEASE WITH THE HIGHEST SCORE IN RESULTS]"
|
85 |
+
conversation_messages = [{"role": "system", "content": "You are a expert dermatologist on a website where we analyze images through Ai for Skin Cancer. [KEEP YOUR ANSWER SHORT] [YOU ARE NOT TALKING WITH PATIENTS, YOU ARE TALKING WITH DOCOTRS WHO ARE DIAGNOSING PATIENTS]"},
|
86 |
{"role": "user", "content": complete_message}]
|
87 |
|
88 |
# Generate assistant's response
|