Both are both, actually. Affect is a noun used in psychology: "Her affect was flat, so I thought she might be depressed. What could have affected her mood this way?"
"No, her mood was an effect of the serious talk she just had with her teacher about how she could effect change in the world with her degree."
Love and grammar!