alexkueck commited on
Commit
cf482a0
·
1 Parent(s): 2b970d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  #!/usr/bin/env python
2
  # -*- coding: utf-8 -*-
3
 
4
- #import streamlit as st #to use the shared secrets
5
  from huggingface_hub import login
6
  import gradio as gr
7
  #from transformers import pipeline
@@ -41,7 +41,8 @@ def group_texts(examples):
41
 
42
  #access_token = st.secrets["ACCESS_TOKEN"]
43
  access_token = "hf_..."
44
- #print(TOKEN)
 
45
  login(token="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")
46
  #Modelle und Tokenizer
47
  model_name = "alexkueck/LIFineTuned"
 
1
  #!/usr/bin/env python
2
  # -*- coding: utf-8 -*-
3
 
4
+ import os
5
  from huggingface_hub import login
6
  import gradio as gr
7
  #from transformers import pipeline
 
41
 
42
  #access_token = st.secrets["ACCESS_TOKEN"]
43
  access_token = "hf_..."
44
+ xxx = os.getenv("TOKEN")
45
+ print(xxx)
46
  login(token="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")
47
  #Modelle und Tokenizer
48
  model_name = "alexkueck/LIFineTuned"