import gradio as gr # Function to return a simple message def get_user_input(user_input): return f"You said: {user_input}" # Create the Gradio interface iface = gr.Interface( fn=get_user_input, inputs="text", outputs="text", title="AI Avatar with D-ID", description="Interact with your D-ID AI Avatar." ) # HTML for D-ID AI Avatar avatar_html = """
""" # Add the HTML component to the interface iface.add_component(gr.HTML(avatar_html)) # Launch the Gradio interface iface.launch(share=True)