Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,8 @@ 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 |
'''
|
|
@@ -67,9 +68,9 @@ Score the proposition on all the above barometers based upon how much they match
|
|
| 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 |
|
|
|
|
| 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 |
+
Show the score in a tabular format with a sum total at the end of table
|
| 64 |
|
| 65 |
{{0}}
|
| 66 |
'''
|
|
|
|
| 68 |
if submit_button:
|
| 69 |
proposal = '''Given proposal is for the city {} with product {}. The propsal is as below.
|
| 70 |
{}'''
|
|
|
|
|
|
|
| 71 |
proposal = proposal.format(selectedCity, selectedProduct, userProposal)
|
| 72 |
+
st.write("Entered proposal:", proposal)
|
| 73 |
+
st.write("Analyzing your proposition")
|
| 74 |
response = model.generate_content([pre_prompt.format(proposal)])
|
| 75 |
st.write(response.text)
|
| 76 |
|