SidneyChen
commited on
Commit
•
1a69e87
1
Parent(s):
d44102e
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
def update(name):
|
2 |
+
return f"Welcome to Gradio, {name}!"
|
3 |
+
|
4 |
+
gui = gr.Interface(fn=update, #callable function
|
5 |
+
inputs=gr.inputs.Textbox(label = '讓我來分析你最近的人格><', placeholder = '個性描述、自己的故事或是曾經發過的文章'), #input format
|
6 |
+
outputs=gr.outputs.Textbox(label = '只有我最了解你,你是一位...'),
|
7 |
+
title = "AI-MBTI knows U.",
|
8 |
+
description = 'Come on. Let us predict your MBTI type ! We will tell you what kind of movie should you watch !',
|
9 |
+
theme = 'grass',
|
10 |
+
# examples = [['User', ‘description, MBTI Type& Moive Fits in U ],
|
11 |
+
|
12 |
+
|
13 |
+
) #output format
|
14 |
+
|
15 |
+
|
16 |
+
#display the interface
|
17 |
+
gui.launch(share=True)
|