chap0lin's picture
Create app.py
857e23d
raw
history blame
456 Bytes
import gradio as gr
import pandas as pd
def greet(name):
boxes = {'Color': ['Green','Green','Green','Blue','Blue','Red','Red','Red'],
'Shape': ['Rectangle','Rectangle','Square','Rectangle','Square','Square','Square','Rectangle'],
'Price': [10,15,5,5,10,15,15,5]
}
df = pd.DataFrame(boxes, columns= ['Color','Shape','Price'])
return df
iface = gr.Interface(fn=greet, inputs="text", outputs="Dataframe")
iface.launch()