chap0lin commited on
Commit
622387f
1 Parent(s): 7e26164

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- return df
 
 
11
 
12
- iface = gr.Interface(fn=greet, inputs="text", outputs="dataframe")
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()