fix typo
Browse files
app.py
CHANGED
@@ -292,7 +292,7 @@ def process_submission(name, email, description, is_published, image):
|
|
292 |
for s in submissions+[current_submission]
|
293 |
]
|
294 |
rank = (
|
295 |
-
sorted(distances, reverse=
|
296 |
np.sqrt(float(QUALITY_POST_FUNC(quality))**2 + float(PERFORMANCE_POST_FUNC(performance))**2)
|
297 |
) + 1
|
298 |
)
|
|
|
292 |
for s in submissions+[current_submission]
|
293 |
]
|
294 |
rank = (
|
295 |
+
sorted(distances, reverse=False).index(
|
296 |
np.sqrt(float(QUALITY_POST_FUNC(quality))**2 + float(PERFORMANCE_POST_FUNC(performance))**2)
|
297 |
) + 1
|
298 |
)
|