Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def process_input_gradio(problem_description: str):
|
|
72 |
print(result_similarities)
|
73 |
# 'id2': 856, 'similarity': tensor([[0.1576]])}, {'constraint': {'title': 'receiving compute requir', 'description': 'the 6g network shall support capability to receive requested compoute req of compouting servieces.'}
|
74 |
result_similarities_display = {
|
75 |
-
k: ", ".join([f"{name} ({score:.3f})" for name, score in v
|
76 |
for k, v, t in result_similarities
|
77 |
}
|
78 |
|
|
|
72 |
print(result_similarities)
|
73 |
# 'id2': 856, 'similarity': tensor([[0.1576]])}, {'constraint': {'title': 'receiving compute requir', 'description': 'the 6g network shall support capability to receive requested compoute req of compouting servieces.'}
|
74 |
result_similarities_display = {
|
75 |
+
k: ", ".join([f"{name} ({score:.3f})" for name, score in v])
|
76 |
for k, v, t in result_similarities
|
77 |
}
|
78 |
|