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"]} 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()