Spaces:
Sleeping
Sleeping
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() |