Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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()
|