alexkueck commited on
Commit
60d30cc
·
1 Parent(s): d912f3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -2,6 +2,7 @@
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
@@ -40,6 +41,7 @@ def group_texts(examples):
40
 
41
  #access_token = st.secrets["ACCESS_TOKEN"]
42
  access_token = "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"
 
43
  #Modelle und Tokenizer
44
 
45
  #Alternativ mit beliebigen Modellen:
 
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
8
  import torch
 
41
 
42
  #access_token = st.secrets["ACCESS_TOKEN"]
43
  access_token = "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"
44
+ login(token="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")
45
  #Modelle und Tokenizer
46
 
47
  #Alternativ mit beliebigen Modellen: