QUICK ANSWER
"Ay" is a form of "ay", an interjection which is often translated as "ow". "Hui" is a form of "huir", an intransitive verb which is often translated as "to escape". Learn more about the difference between "ay" and "hui" below.
ay(
ay
)An interjection is a short utterance that expresses emotion, hesitation, or protest (e.g., Wow!).
b. jeez (colloquial)
A word or phrase that is commonly used in conversational speech (e.g., skinny, grandma).
¡Ay! Me asustaste.Jeez! You scared me.
A masculine noun is used with masculine articles and adjectives (e.g., el hombre guapo, el sol amarillo).
huir(
weer
)An intransitive verb is one that does not require a direct object (e.g., The man sneezed.).
1. (to leave)
a. to escape (from a person or place)
Cuatro presos huyeron de la cárcel el domingo por la tarde.Four inmates escaped from the prison on Sunday afternoon.
El hada trató de huir, pero el brujo la agarró por las alas.The fairy tried to escape, but the wizard grabbed her by the wings.
b. to flee (from danger or pursuit)
Muchos migrantes huyeron del país por temor a la persecución.Many migrants fled the country due to fear of persecution.
c. to run away
Nuestro perro huyó de casa anoche y todavía no lo hemos encontrado.Our dog ran away from home last night and we still haven't found him.
a. to avoid
Ella huye de los refrescos desde que le dijeron que tiene un alto riesgo de contraer diabetes.She's been avoiding soda since she was told that she has a high risk of developing diabetes.