TabPFN commited on
Commit
b2213e4
1 Parent(s): 129c838

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -75,22 +75,23 @@ The TabPFN will classify the values for all empty cells in the label column.
75
  Please, provide everything but the label column as numeric values.
76
  You can also upload datasets to fill the table automatically.
77
  """)
 
 
 
 
 
 
 
 
 
78
  examples = gr.Examples(examples=['iris.csv', 'balance-scale.arff'],
79
  inputs=[inp_file],
80
  outputs=[inp_table],
81
  fn=upload_file,
82
  cache_examples=True)
83
- inp_table = gr.DataFrame(type='numpy', value=example, headers=[''] * 3)
84
- upload_file('iris.csv')
85
  inp_file = gr.File(
86
  label='Drop either a .csv (without header, only numeric values for all but the labels) or a .arff file.')
87
- btn = gr.Button("Predict Empty Table Cells")
88
 
89
  inp_file.change(fn=upload_file, inputs=inp_file, outputs=inp_table)
90
 
91
- out_text = gr.Markdown()
92
- out_table = gr.DataFrame()
93
-
94
- btn.click(fn=compute, inputs=inp_table, outputs=[out_text, out_table])
95
-
96
  demo.launch()
 
75
  Please, provide everything but the label column as numeric values.
76
  You can also upload datasets to fill the table automatically.
77
  """)
78
+ inp_table = gr.DataFrame(type='numpy', value=example, headers=[''] * 3)
79
+ upload_file('iris.csv')
80
+
81
+ btn = gr.Button("Predict Empty Table Cells")
82
+ btn.click(fn=compute, inputs=inp_table, outputs=[out_text, out_table])
83
+
84
+ out_text = gr.Markdown()
85
+ out_table = gr.DataFrame()
86
+
87
  examples = gr.Examples(examples=['iris.csv', 'balance-scale.arff'],
88
  inputs=[inp_file],
89
  outputs=[inp_table],
90
  fn=upload_file,
91
  cache_examples=True)
 
 
92
  inp_file = gr.File(
93
  label='Drop either a .csv (without header, only numeric values for all but the labels) or a .arff file.')
 
94
 
95
  inp_file.change(fn=upload_file, inputs=inp_file, outputs=inp_table)
96
 
 
 
 
 
 
97
  demo.launch()