Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,9 @@ def greet(name):
|
|
7 |
'Price': [10,15,5,5,10,15,15,5]
|
8 |
}
|
9 |
df = pd.DataFrame(boxes, columns= ['Color','Shape','Price'])
|
10 |
-
|
|
|
|
|
11 |
|
12 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="
|
13 |
iface.launch()
|
|
|
7 |
'Price': [10,15,5,5,10,15,15,5]
|
8 |
}
|
9 |
df = pd.DataFrame(boxes, columns= ['Color','Shape','Price'])
|
10 |
+
df.to_excel("output.xlsx")
|
11 |
+
|
12 |
+
return gr.File("output.xlsx")
|
13 |
|
14 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="file")
|
15 |
iface.launch()
|