yonatanbitton commited on
Commit
09cfa96
·
1 Parent(s): d7f0ed6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
  from datasets import load_dataset
4
 
5
  auth_token = os.environ.get("auth_token")
6
- visit_bench_all = load_dataset("mlfoundations/visit-bench", use_auth_token=auth_token)
7
  print('visit_bench_all')
8
  print(visit_bench_all)
9
  print('dataset keys:')
@@ -12,6 +12,8 @@ dataset_keys = list(visit_bench_all.keys())
12
  assert len(dataset_keys) == 1
13
  dataset_key = dataset_keys[0]
14
  visit_bench = visit_bench_all[dataset_key]
 
 
15
 
16
  df = visit_bench.to_pandas()
17
  print(f"Got {len(df)} items in dataframe")
 
3
  from datasets import load_dataset
4
 
5
  auth_token = os.environ.get("auth_token")
6
+ visit_bench_all = load_dataset("mlfoundations/VisIT-Bench", use_auth_token=auth_token)
7
  print('visit_bench_all')
8
  print(visit_bench_all)
9
  print('dataset keys:')
 
12
  assert len(dataset_keys) == 1
13
  dataset_key = dataset_keys[0]
14
  visit_bench = visit_bench_all[dataset_key]
15
+ print('first item:')
16
+ print(visit_bench[0])
17
 
18
  df = visit_bench.to_pandas()
19
  print(f"Got {len(df)} items in dataframe")