Spaces:
Sleeping
Sleeping
File size: 377 Bytes
937eac0 61f3e50 ab0de04 937eac0 472ba1f 7513cd5 472ba1f 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(input=""):
df = pd.DataFrame(data={'x': [1, 2], 'y': [3, 4], "cos": [0.1, 0.5]})
return df, df.to_html()
iface = gr.Interface(
fn,
"text",
["dataframe", "html"],
title="Test dataframe and html",
description="Test dataframe and html",
# layout="vertical",
)
iface.launch(share=False, debug=True)
# iface.launch() |