Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
danielritchie
/
generative-affect-engine
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
generative-affect-engine
/
utils
/
drama.py
danielritchie
init
9191c48
2 days ago
raw
Copy download link
history
blame
contribute
delete
Safe
127 Bytes
def
apply_drama
(
raw, target, drama
):
return
{
k: raw[k] + drama * (target[k] - raw[k])
for
k
in
raw
}