Spaces:
Runtime error
Runtime error
Create app.py
Browse files
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()
|