Spaces:
Sleeping
Sleeping
File size: 380 Bytes
937eac0 ab0de04 937eac0 ab0de04 7513cd5 ab0de04 937eac0 ab0de04 937eac0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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() |