suryadev1 commited on
Commit
993472c
·
1 Parent(s): b431555

changed the reset thing

Browse files
app.py CHANGED
@@ -1231,9 +1231,14 @@ with gr.Blocks(theme='gstaff/sketch', css=custom_css) as demo:
1231
 
1232
 
1233
  btn.click(
1234
- fn=process_file,
1235
- inputs=[model_dropdown,increment_slider],
1236
- outputs=[output_text,plot_output,opt1_pie,opt2_pie]
 
 
 
 
 
1237
  )
1238
 
1239
 
 
1231
 
1232
 
1233
  btn.click(
1234
+ fn=lambda model, increment: (
1235
+ *process_file(model, increment), # Unpack all outputs from process_file
1236
+ gr.update(value=None), # Reset dropdown to first item
1237
+ None, # Clear file output
1238
+ gr.update(visible=False) # Hide visualize markdown
1239
+ ),
1240
+ inputs=[model_dropdown, increment_slider],
1241
+ outputs=[output_text, plot_output, opt1_pie, opt2_pie, file_dropdown, file_output, visualize_markdown]
1242
  )
1243
 
1244
 
fileHandler/ER-successful-strategies.csv CHANGED
The diff for this file is too large to render. See raw diff
 
fileHandler/ER-unsuccessful-strategies.csv CHANGED
The diff for this file is too large to render. See raw diff
 
fileHandler/ME-successful-strategies.csv CHANGED
The diff for this file is too large to render. See raw diff
 
fileHandler/ME-unsuccessful-strategies.csv CHANGED
The diff for this file is too large to render. See raw diff
 
fileHandler/result.txt CHANGED
@@ -1,7 +1,7 @@
1
- avg_loss: 0.5949305891990662
2
- total_acc: 69.32153392330383
3
- precisions: 0.7051924102823985
4
- recalls: 0.6932153392330384
5
- f1_scores: 0.6812904869706681
6
- time_taken_from_start: 0.7147588729858398
7
- auc_score: 0.7260168302945301
 
1
+ avg_loss: 0.6459757685661316
2
+ total_acc: 64.30678466076697
3
+ precisions: 0.6414367454635165
4
+ recalls: 0.6430678466076696
5
+ f1_scores: 0.6409828333648592
6
+ time_taken_from_start: 0.6194958686828613
7
+ auc_score: 0.6989481065918653
fileHandler/roc_data.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d4062c68df5ecedbf48f1ed998ce826c00dab8af95ce39407966101399635da8
3
  size 3482
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:986b6ff83778c30345a93c061d308be48f2747808cfe23f95f841777d60c31d5
3
  size 3482
fileHandler/roc_data2.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:14d2e66dd226632bc33ca7730e4d1bb12407fec7087acc2d30e3d267dda98f74
3
  size 9599
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f19c4f2b68251bd880418198eff97a53629ff0a43ce7992d6f55d398af3b56b9
3
  size 9599
fileHandler/tlabels_plabels.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:526abe62d729e9b74f650469453edc3fc5a5123614cc81bac8c68a3f3b51f1b9
3
  size 12989
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1163cbe476ae285577f0d2082e9bf5f1cd76c0d5528e815ec5aa56aaee5fe8f7
3
  size 12989
ratio_proportion_change3_2223/sch_largest_100-coded/time_info/full_data_normalized_time.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c2230fb82b3a8684c486f6ca5749100b35b204b084228d50f282195d318d7848
3
  size 4660819
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23fb24a2d90e840dbc5e98e09812f8ce16871360d8d479675637990686eb4d8d
3
  size 4660819