Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -183,7 +183,7 @@ if prompt := st.chat_input(initial_input):
|
|
| 183 |
arr1 = openai_text_embedding(question)
|
| 184 |
arr2 = openai_text_embedding(this_content)
|
| 185 |
# this_score = calculate_sts_openai_score(question, this_content)
|
| 186 |
-
this_score = quantized_influence(arr1, arr2)[0]
|
| 187 |
else:
|
| 188 |
this_score = 0
|
| 189 |
independent_ai_judge_score.append(this_score)
|
|
|
|
| 183 |
arr1 = openai_text_embedding(question)
|
| 184 |
arr2 = openai_text_embedding(this_content)
|
| 185 |
# this_score = calculate_sts_openai_score(question, this_content)
|
| 186 |
+
this_score = quantized_influence(arr1, arr2, k=3)[0]
|
| 187 |
else:
|
| 188 |
this_score = 0
|
| 189 |
independent_ai_judge_score.append(this_score)
|