chap0lin commited on
Commit
857e23d
1 Parent(s): d56b527

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import pandas as pd
3
+
4
+ def greet(name):
5
+ boxes = {'Color': ['Green','Green','Green','Blue','Blue','Red','Red','Red'],
6
+ 'Shape': ['Rectangle','Rectangle','Square','Rectangle','Square','Square','Square','Rectangle'],
7
+ 'Price': [10,15,5,5,10,15,15,5]
8
+ }
9
+ df = pd.DataFrame(boxes, columns= ['Color','Shape','Price'])
10
+ return df
11
+
12
+ iface = gr.Interface(fn=greet, inputs="text", outputs="Dataframe")
13
+ iface.launch()