Spaces:
Sleeping
Sleeping
Commit
·
9cb156b
1
Parent(s):
04ef94e
Allow all votes to count for public leaderboard
Browse files
models.py
CHANGED
|
@@ -239,16 +239,13 @@ def record_vote(user_id, text, chosen_model_id, rejected_model_id, model_type,
|
|
| 239 |
# Determine sentence origin and whether it should count for public leaderboard
|
| 240 |
sentence_hash = hash_sentence(text)
|
| 241 |
sentence_origin = 'unknown'
|
| 242 |
-
counts_for_public = True
|
| 243 |
|
| 244 |
if all_dataset_sentences and text in all_dataset_sentences:
|
| 245 |
sentence_origin = 'dataset'
|
| 246 |
-
# For dataset sentences, check if already consumed to prevent fraud
|
| 247 |
-
# But now we'll mark as consumed AFTER successful vote recording
|
| 248 |
-
counts_for_public = not is_sentence_consumed(text)
|
| 249 |
else:
|
| 250 |
sentence_origin = 'custom'
|
| 251 |
-
|
| 252 |
|
| 253 |
# Create the vote
|
| 254 |
vote = Vote(
|
|
|
|
| 239 |
# Determine sentence origin and whether it should count for public leaderboard
|
| 240 |
sentence_hash = hash_sentence(text)
|
| 241 |
sentence_origin = 'unknown'
|
| 242 |
+
counts_for_public = True # 한국어 TTS Arena: 모든 투표가 public leaderboard에 반영됨
|
| 243 |
|
| 244 |
if all_dataset_sentences and text in all_dataset_sentences:
|
| 245 |
sentence_origin = 'dataset'
|
|
|
|
|
|
|
|
|
|
| 246 |
else:
|
| 247 |
sentence_origin = 'custom'
|
| 248 |
+
# 한국어 TTS Arena는 새로 시작하므로 모든 투표를 public leaderboard에 반영
|
| 249 |
|
| 250 |
# Create the vote
|
| 251 |
vote = Vote(
|