ddiddu commited on
Commit
a998b3a
·
verified ·
1 Parent(s): 1189dde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -24,13 +24,16 @@ def predict(message, history):
24
 
25
  return response.content
26
 
27
- prompt = (
28
- # os.getenv('PREDICT_PROMPT1')
29
- f"As Jisu(she/her/hers)'s personal assistant,"
30
- f"Given that: {cv_json}, How can I assist with information on: {message}"
31
- f"If source does not contains relevant information, I will state that the information is not available."
32
- )
33
-
 
 
 
34
  response = llm([HumanMessage(content=prompt)])
35
  return response.content
36
 
 
24
 
25
  return response.content
26
 
27
+ # prompt = (
28
+ # # os.getenv('PREDICT_PROMPT1')
29
+ # f"As Jisu(she/her/hers)'s personal assistant,"
30
+ # f"Given that: {cv_json}, How can I assist with information on: {message}"
31
+ # f"If source does not contains relevant information, I will state that the information is not available."
32
+ # )
33
+
34
+ # prompt = "As Jisu(she/her/hers)'s personal assistant, Given that: {}, How can I assist with information on: {}. If the source does not contain relevant information, I will state that the information is not available.".format(cv_json, message)
35
+ prompt = os.getenv('PREDICT_PROMPT1').format(cv_json, message)
36
+
37
  response = llm([HumanMessage(content=prompt)])
38
  return response.content
39