import gradio as gr gr.Interface(lambda x:x.name, "file", "file").launch()