Spaces:
Sleeping
Sleeping
superlazycoder
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -59,14 +59,17 @@ I feel out of depth with my finances 103
|
|
59 |
Helps me gain control over my future 97
|
60 |
The brand is fun 120
|
61 |
|
62 |
-
Score the proposition on all the above barometers based upon how much they match with the barometer with semantic similarity. Score should be between 0 - 200
|
63 |
|
64 |
{{0}}
|
65 |
'''
|
66 |
|
67 |
if submit_button:
|
|
|
|
|
68 |
st.write("You clicked the Submit button!")
|
69 |
st.write("Entered text:", userProposal)
|
70 |
-
|
|
|
71 |
st.write(response.text)
|
72 |
|
|
|
59 |
Helps me gain control over my future 97
|
60 |
The brand is fun 120
|
61 |
|
62 |
+
Score the proposition on all the above barometers based upon how much they match with the barometer with semantic similarity. Score should be between 0 - 200. Show the score in a tabular format
|
63 |
|
64 |
{{0}}
|
65 |
'''
|
66 |
|
67 |
if submit_button:
|
68 |
+
proposal = '''Given proposal is for the city {} with product {}. The propsal is as below.
|
69 |
+
{}'''
|
70 |
st.write("You clicked the Submit button!")
|
71 |
st.write("Entered text:", userProposal)
|
72 |
+
proposal = proposal.format(selectedCity, selectedProduct, userProposal)
|
73 |
+
response = model.generate_content([pre_prompt.format(proposal)])
|
74 |
st.write(response.text)
|
75 |
|