Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from Gradio_UI import GradioUI
|
|
10 |
|
11 |
response = requests.get("https://www.mit.edu/~ecprice/wordlist.10000")
|
12 |
WORDS = response.content.splitlines()
|
13 |
-
|
14 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
15 |
@tool
|
16 |
def get_random_word(letter: str)-> str: #it's import to specify the return type
|
|
|
10 |
|
11 |
response = requests.get("https://www.mit.edu/~ecprice/wordlist.10000")
|
12 |
WORDS = response.content.splitlines()
|
13 |
+
FORMATTED_WORDS=[barray.decode("utf-8") for barray in WORDS]
|
14 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
15 |
@tool
|
16 |
def get_random_word(letter: str)-> str: #it's import to specify the return type
|