Nicola commited on
Commit
c168432
1 Parent(s): f2b7155

add login to hf hub

Browse files
Files changed (2) hide show
  1. app.py +0 -1
  2. pages/login.py +2 -0
app.py CHANGED
@@ -1,6 +1,5 @@
1
  import streamlit as st
2
 
3
-
4
  st.set_page_config(
5
  page_title="ciVIS",
6
  page_icon="👋"
 
1
  import streamlit as st
2
 
 
3
  st.set_page_config(
4
  page_title="ciVIS",
5
  page_icon="👋"
pages/login.py CHANGED
@@ -1,8 +1,10 @@
1
  import os
2
  import streamlit as st
3
  from datasets import load_dataset
 
4
 
5
  HF_TOKEN = os.environ.get("HF_TOKEN")
 
6
 
7
 
8
  def get_dataset():
 
1
  import os
2
  import streamlit as st
3
  from datasets import load_dataset
4
+ from huggingface_hub import login
5
 
6
  HF_TOKEN = os.environ.get("HF_TOKEN")
7
+ login(HF_TOKEN)
8
 
9
 
10
  def get_dataset():