import gradio as gr import random gr.Interface(fn=lambda x:''.join(random.sample(x, len(x))), inputs="text", outputs="text").launch()