bnoy1 commited on
Commit
5ff1624
verified
1 Parent(s): 251ecb7

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import random
3
+
4
+ def classify_emotion(image):
5
+ emotions = ["砖诪讞", "注爪讜讘", "诪讜驻转注", "注爪讘谞讬", "谞诇讛讘"]
6
+ return random.choice(emotions)
7
+
8
+ interface = gr.Interface(
9
+ fn=classify_emotion,
10
+ inputs=gr.Image(type="pil"),
11
+ outputs="text",
12
+ title="诪谞讞砖 专讙砖讜转",
13
+ description="讛注诇讜 转诪讜谞讛 讜谞讙诇讛 讗讬讱 讗转诐 诪专讙讬砖讬诐!"
14
+ )
15
+
16
+ interface.launch()