import pandas as pd import gradio as gr def example_fn(text): d = {'c1': ["This is col 1"], 'c2': ["This is col 2"], 'c3': ["This is col 3"], 'c4': ["This is col 4"], 'c5': ["This is col 5"], 'c6': ["This is col 6"], 'c7': ["This is col 7"], 'c8': ["This is col 8"], 'c9': ["This is col 9"], 'c10': ["This is col 10"], 'c11': ["This is col 11"], 'c12': ["This is col 12"], 'c13': ["This is col 13"], 'c14': ["This is col 14"], 'c15': ["This is col 15"]} df = pd.DataFrame(data=d) return df demo = gr.Interface( fn = example_fn, inputs = [gr.Textbox(label="Input", lines=3, ) ], outputs = [gr.DataFrame()], title="Test", allow_flagging=False, ) demo.launch()