YoniFriedman commited on
Commit
a463e96
·
verified ·
1 Parent(s): 5bb67d1

moving indentation

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -63,15 +63,15 @@ def nishauri(question: str, conversation_history: list[str]):
63
  " A high viral load or non-suppressed viral load is any viral load above 200 copies/ml."
64
  " A suppressed viral load is one below 200 copies / ml.")
65
 
66
- question_final = (
67
- f" The user previously asked and answered the following: {context}. "
68
- f" The user just asked the following question: {question}."
69
- f" Please use the following content to generate a response: {source0} {source1} {source2}."
70
- f" Please consider the following background information when generating a response: {background}."
71
- " Keep answers brief and limited to the question that was asked."
72
- " Do not provide information the user did not ask about. If they start with a greeting, just greet them in return and don't share anything else."
73
- " Do not change the subject or address anything the user didn't directly ask about."
74
- " If they respond with an acknowledgement such as 'ok' or 'thanks', simply thank them ask if there is anything else that you can help with.")
75
 
76
  completion = client.chat.completions.create(
77
  model="gpt-4o",
 
63
  " A high viral load or non-suppressed viral load is any viral load above 200 copies/ml."
64
  " A suppressed viral load is one below 200 copies / ml.")
65
 
66
+ question_final = (
67
+ f" The user previously asked and answered the following: {context}. "
68
+ f" The user just asked the following question: {question}."
69
+ f" Please use the following content to generate a response: {source0} {source1} {source2}."
70
+ f" Please consider the following background information when generating a response: {background}."
71
+ " Keep answers brief and limited to the question that was asked."
72
+ " Do not provide information the user did not ask about. If they start with a greeting, just greet them in return and don't share anything else."
73
+ " Do not change the subject or address anything the user didn't directly ask about."
74
+ " If they respond with an acknowledgement such as 'ok' or 'thanks', simply thank them ask if there is anything else that you can help with.")
75
 
76
  completion = client.chat.completions.create(
77
  model="gpt-4o",