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)