alexkueck commited on
Commit
37c4d2f
·
1 Parent(s): 4038ede

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  #!/usr/bin/env python
2
  # -*- coding: utf-8 -*-
3
 
 
4
  import gradio as gr
5
  #from transformers import pipeline
6
  import torch
@@ -36,7 +37,8 @@ def group_texts(examples):
36
 
37
  ###################################################################################
38
  #Access-Token (in Secrets)
39
- access_token = ACCESS_TOKEN
 
40
 
41
  #Modelle und Tokenizer
42
 
 
1
  #!/usr/bin/env python
2
  # -*- coding: utf-8 -*-
3
 
4
+ import streamlit as st #to use the shared secrets
5
  import gradio as gr
6
  #from transformers import pipeline
7
  import torch
 
37
 
38
  ###################################################################################
39
  #Access-Token (in Secrets)
40
+
41
+ access_token = st.secrets["ACCESS_TOKEN"]
42
 
43
  #Modelle und Tokenizer
44