Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -147,7 +147,7 @@ if input:
|
|
147 |
input_embed = model.encode(input)
|
148 |
sim_score = similarity_top(input_embed, icd_embeddings)
|
149 |
i = 1
|
150 |
-
nums = {1: 'one', 2: 'two', 3: 'three', 4:'four', 5:'five'}
|
151 |
for dis, value in sim_score:
|
152 |
st.write(f":green[*Prediction number*] :{i}: :")
|
153 |
st.write(f"{dis} (similarity score:", value, ")")
|
|
|
147 |
input_embed = model.encode(input)
|
148 |
sim_score = similarity_top(input_embed, icd_embeddings)
|
149 |
i = 1
|
150 |
+
nums = {1: 'one', 2: 'two', 3: 'three', 4:'four', 5:'five'}
|
151 |
for dis, value in sim_score:
|
152 |
st.write(f":green[*Prediction number*] :{i}: :")
|
153 |
st.write(f"{dis} (similarity score:", value, ")")
|