Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
|
|
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 |
|