Spaces:
Sleeping
Sleeping
Javierss
commited on
Commit
·
9d978d6
1
Parent(s):
5c4f7b5
Change ranking spacing
Browse files- __pycache__/hints.cpython-311.pyc +0 -0
- data/plays/casino_2024-10-24 09:48:34.886608 +9 -0
- data/ranking.txt +1 -0
- hints.py +11 -3
- requirements.txt +5 -3
__pycache__/hints.cpython-311.pyc
CHANGED
Binary files a/__pycache__/hints.cpython-311.pyc and b/__pycache__/hints.cpython-311.pyc differ
|
|
data/plays/casino_2024-10-24 09:48:34.886608
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
['#9', 'juego', 5.0]
|
2 |
+
['#7', 'mesa', 3.37]
|
3 |
+
['#2', 'percha', 3.3]
|
4 |
+
['#5', 'vieja', 3.19]
|
5 |
+
['#3', 'loco', 3.13]
|
6 |
+
['#6', 'persona', 2.79]
|
7 |
+
['#8', 'casa', 2.11]
|
8 |
+
['#1', 'amigo', 2.06]
|
9 |
+
['#4', 'pantalón', 1.02]
|
data/ranking.txt
CHANGED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
---------------------------
|
hints.py
CHANGED
@@ -148,12 +148,20 @@ def hint(secret, n, model, last_pista, lang, Config):
|
|
148 |
|
149 |
pista += Config.hint_3_3 # type: ignore
|
150 |
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
for i in range(len(words)):
|
|
|
|
|
152 |
pista += (
|
153 |
-
|
154 |
-
|
155 |
+ "|"
|
156 |
-
+ ("🟩") * round(normalized_scores[i] * 0.
|
157 |
+ " "
|
158 |
+ str(normalized_scores[i])
|
159 |
+ "%\n"
|
|
|
148 |
|
149 |
pista += Config.hint_3_3 # type: ignore
|
150 |
|
151 |
+
max_len = -1
|
152 |
+
for ele in words:
|
153 |
+
if len(ele) > max_len:
|
154 |
+
max_len = len(ele)
|
155 |
+
longest_word = ele
|
156 |
+
|
157 |
for i in range(len(words)):
|
158 |
+
|
159 |
+
word_hint = words[i].ljust(len(longest_word) + 1)
|
160 |
pista += (
|
161 |
+
# word_hint[: len(longest_word)]
|
162 |
+
word_hint
|
163 |
+ "|"
|
164 |
+
+ ("🟩") * round(normalized_scores[i] * 0.1)
|
165 |
+ " "
|
166 |
+ str(normalized_scores[i])
|
167 |
+ "%\n"
|
requirements.txt
CHANGED
@@ -1,3 +1,5 @@
|
|
1 |
-
gensim
|
2 |
-
sentence_transformers
|
3 |
-
openai
|
|
|
|
|
|
1 |
+
gensim==4.3.0
|
2 |
+
sentence_transformers==2.2.2
|
3 |
+
openai==1.2.3
|
4 |
+
gradio==5.1.0
|
5 |
+
transformers==4.33.2
|