ruchi commited on
Commit
bffe4e7
·
1 Parent(s): 1ef58a6

Add pre prompt

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -23,13 +23,20 @@ st.markdown(
23
 
24
  selectedCity = st.selectbox("Please select the City and the Bank Product for Your Proposition.", ["CharlesTown", "Limburg"])
25
  selectedProduct = st.selectbox("Please select the Product", ["Current", "Mortage", "Credit Card", "Crypto"])
26
- userProposal = st.text_input("Enter your Proposition for Select City and Product")
27
 
28
  submit_button = st.button("Submit")
 
 
 
 
 
 
 
29
 
30
  if submit_button:
31
  st.write("You clicked the Submit button!")
32
  st.write("Entered text:", userProposal)
33
- response = model.generate_content([userProposal])
34
  st.write(response.text)
35
 
 
23
 
24
  selectedCity = st.selectbox("Please select the City and the Bank Product for Your Proposition.", ["CharlesTown", "Limburg"])
25
  selectedProduct = st.selectbox("Please select the Product", ["Current", "Mortage", "Credit Card", "Crypto"])
26
+ userProposal = st.text_area("Enter your Proposition for Select City and Product")
27
 
28
  submit_button = st.button("Submit")
29
+ pre_prompt = '''You are a business advisor person and you specialize in banking services.
30
+ We have two use cases of two separate banks CharlesTown and Limburg. Charles town is a bigger bank and can provide loans for huge companies while Limburg is a small
31
+ bank which provides personal loans and small business loans. CharlesTown has an interest rate of 3% while Limbur has it at 5%. You will get proposal for loan request and you will have to
32
+ decide which bank suits them the best to provide loan for.
33
+
34
+ {{0}}
35
+ '''
36
 
37
  if submit_button:
38
  st.write("You clicked the Submit button!")
39
  st.write("Entered text:", userProposal)
40
+ response = model.generate_content([pre_prompt.format(userProposal)])
41
  st.write(response.text)
42