ktrapeznikov commited on
Commit
4305e1f
1 Parent(s): e162919

Update script.py

Browse files
Files changed (1) hide show
  1. script.py +4 -5
script.py CHANGED
@@ -1,9 +1,8 @@
1
  import pandas as pd
2
- test_df = pd.read_csv("/tmp/data/test/metadata.csv")
 
3
 
4
- out = []
5
-
6
- for file_name in test_df.file_name:
7
- out.append(dict(file_name = file_name, pred = "flux"))
8
 
9
  pd.Dataframe(out).to_csv("submission.csv",index = False)
 
1
  import pandas as pd
2
+ from datasets import load_dataset
3
+ dataset_remote = load_dataset("kt-ml/ImageGenTest")
4
 
5
+ for id in dataset_remote["test"]["id"]:
6
+ out.append(dict(id = id, pred = "flux"))
 
 
7
 
8
  pd.Dataframe(out).to_csv("submission.csv",index = False)