myhs commited on
Commit
8e04df6
·
verified ·
1 Parent(s): 9f988ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -226,10 +226,11 @@ def show_results_tab(df):
226
  outputs=table,
227
  )
228
 
229
- def download_table(df):
230
- return df, gr.File(value=df.to_csv(index=False), visible=True)
 
231
 
232
- btn.click(fn=download_table, inputs=[df], outputs=[table, download_btn])
233
 
234
 
235
  with gr.Row():
 
226
  outputs=table,
227
  )
228
 
229
+ def download_table():
230
+ newdf, modellist, datasetlist = make_results_tab(model_info, results)
231
+ return gr.File(value=newdf.to_csv(index=False), visible=True)
232
 
233
+ btn.click(fn=download_table, outputs=download_btn)
234
 
235
 
236
  with gr.Row():