import gradio as gr import random def classify_emotion(image): emotions = ["שמח", "עצוב", "מופתע", "עצבני", "נלהב"] return random.choice(emotions) interface = gr.Interface( fn=classify_emotion, inputs=gr.Image(type="pil"), outputs="text", title="מנחש רגשות", description="העלו תמונה ונגלה איך אתם מרגישים!" ) interface.launch()