File size: 842 Bytes
1a69e87
 
fc83aa0
1a69e87
 
 
 
 
 
 
 
 
 
 
 
 
 
f263c64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
def update(name):
    return f"Welcome to Gradio, {name}!"
import gradio as gr

gui = gr.Interface(fn=update, #callable function
                   inputs=gr.inputs.Textbox(label = '讓我來分析你最近的人格><', placeholder = '個性描述、自己的故事或是曾經發過的文章'), #input format
                   outputs=gr.outputs.Textbox(label = '只有我最了解你,你是一位...'),
                   title = "AI-MBTI knows U.",
                   description = 'Come on. Let us predict your MBTI type !     We will tell you what kind of movie should you watch !',
                   theme = 'grass',
                  #  examples = [['User', ‘description, MBTI Type& Moive Fits in U ],
                       
                   
                   ) #output format


#display the interface
gui.launch(share=True)