nsthorat-lilac commited on
Commit
acec199
·
1 Parent(s): 1f39ac4

Push to HF space

Browse files
Files changed (2) hide show
  1. app.py +4 -0
  2. requirements.txt +3 -3
app.py CHANGED
@@ -12,6 +12,10 @@ from datasets import load_dataset_builder
12
  if 'current_page' not in st.session_state:
13
  st.session_state.current_page = 'dataset'
14
 
 
 
 
 
15
 
16
  def _dataset_page():
17
  is_valid_dataset = False
 
12
  if 'current_page' not in st.session_state:
13
  st.session_state.current_page = 'dataset'
14
 
15
+ query_params = st.experimental_get_query_params()
16
+ if 'dataset' in query_params:
17
+ st.session_state.hf_dataset_name = query_params['dataset'][0]
18
+
19
 
20
  def _dataset_page():
21
  is_valid_dataset = False
requirements.txt CHANGED
@@ -6,7 +6,7 @@ anyio==3.7.1 ; python_version >= "3.10" and python_version < "4.0"
6
  async-timeout==4.0.3 ; python_version >= "3.10" and python_version < "4.0"
7
  attrs==23.1.0 ; python_version >= "3.10" and python_version < "4.0"
8
  authlib==1.2.1 ; python_version >= "3.10" and python_version < "4.0"
9
- blinker==1.6.3 ; python_version >= "3.10" and python_version < "4.0"
10
  blis==0.7.11 ; python_version >= "3.10" and python_version < "4.0"
11
  cachetools==5.3.2 ; python_version >= "3.10" and python_version < "4.0"
12
  catalogue==2.0.10 ; python_version >= "3.10" and python_version < "4.0"
@@ -50,7 +50,7 @@ hnswlib==0.7.0 ; python_version >= "3.10" and python_version < "4.0"
50
  httpcore==0.17.3 ; python_version >= "3.10" and python_version < "4.0"
51
  httptools==0.6.1 ; python_version >= "3.10" and python_version < "4.0"
52
  httpx==0.24.1 ; python_version >= "3.10" and python_version < "4.0"
53
- huggingface-hub==0.17.3 ; python_version >= "3.10" and python_version < "4.0"
54
  idna==3.4 ; python_version >= "3.10" and python_version < "4.0"
55
  importlib-metadata==6.8.0 ; python_version >= "3.10" and python_version < "4.0"
56
  instructor==0.2.9 ; python_version >= "3.10" and python_version < "4.0"
@@ -80,7 +80,7 @@ pandas==2.1.2 ; python_version >= "3.10" and python_version < "4.0"
80
  partd==1.4.1 ; python_version >= "3.10" and python_version < "4.0"
81
  pillow==9.5.0 ; python_version >= "3.10" and python_version < "4.0"
82
  preshed==3.0.9 ; python_version >= "3.10" and python_version < "4.0"
83
- protobuf==4.24.4 ; python_version >= "3.10" and python_version < "4.0"
84
  psutil==5.9.6 ; python_version >= "3.10" and python_version < "4.0"
85
  pyarrow==13.0.0 ; python_version >= "3.10" and python_version < "4.0"
86
  pyasn1-modules==0.3.0 ; python_version >= "3.10" and python_version < "4.0"
 
6
  async-timeout==4.0.3 ; python_version >= "3.10" and python_version < "4.0"
7
  attrs==23.1.0 ; python_version >= "3.10" and python_version < "4.0"
8
  authlib==1.2.1 ; python_version >= "3.10" and python_version < "4.0"
9
+ blinker==1.7.0 ; python_version >= "3.10" and python_version < "4.0"
10
  blis==0.7.11 ; python_version >= "3.10" and python_version < "4.0"
11
  cachetools==5.3.2 ; python_version >= "3.10" and python_version < "4.0"
12
  catalogue==2.0.10 ; python_version >= "3.10" and python_version < "4.0"
 
50
  httpcore==0.17.3 ; python_version >= "3.10" and python_version < "4.0"
51
  httptools==0.6.1 ; python_version >= "3.10" and python_version < "4.0"
52
  httpx==0.24.1 ; python_version >= "3.10" and python_version < "4.0"
53
+ huggingface-hub==0.18.0 ; python_version >= "3.10" and python_version < "4.0"
54
  idna==3.4 ; python_version >= "3.10" and python_version < "4.0"
55
  importlib-metadata==6.8.0 ; python_version >= "3.10" and python_version < "4.0"
56
  instructor==0.2.9 ; python_version >= "3.10" and python_version < "4.0"
 
80
  partd==1.4.1 ; python_version >= "3.10" and python_version < "4.0"
81
  pillow==9.5.0 ; python_version >= "3.10" and python_version < "4.0"
82
  preshed==3.0.9 ; python_version >= "3.10" and python_version < "4.0"
83
+ protobuf==4.25.0 ; python_version >= "3.10" and python_version < "4.0"
84
  psutil==5.9.6 ; python_version >= "3.10" and python_version < "4.0"
85
  pyarrow==13.0.0 ; python_version >= "3.10" and python_version < "4.0"
86
  pyasn1-modules==0.3.0 ; python_version >= "3.10" and python_version < "4.0"