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