fancy-power / app.py
mikeee's picture
Update app.py
7513cd5
raw
history blame
380 Bytes
import gradio as gr
def fn():
df = pd.DataFrame(data={'x': [1, 2], 'y': [3, 4], "cos": [0.1, 0.5]})
return df, df.to_html()
iface = gr.Interface(
fn=fn,
"text",
outputs=["dataframe", "html"],
title="Test dataframe and html",
description="Test dataframe and html",
# layout="vertical",
)
iface.launch(share=False, debug=True)
# iface.launch()