Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
yashkens
/
StoryTime
like
0
Runtime error
App
Files
Files
Community
904421a
StoryTime
/
stats.py
yashkens
add stats & joy/sadness level
057e447
almost 2 years ago
raw
Copy download link
history
blame
No virus
123 Bytes
def
get_repetitions
(
words
):
words = [w.lower()
for
w
in
words]
ratio =
len
(
set
(words))/
len
(words)
return
ratio