Spaces:
Paused
Paused
Update app.py
Browse files
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 |
import gradio as gr
|
6 |
#from transformers import pipeline
|
7 |
import torch
|
@@ -38,8 +38,8 @@ def group_texts(examples):
|
|
38 |
###################################################################################
|
39 |
#Access-Token (in Secrets)
|
40 |
|
41 |
-
access_token = st.secrets["ACCESS_TOKEN"]
|
42 |
-
|
43 |
#Modelle und Tokenizer
|
44 |
|
45 |
#Alternativ mit beliebigen Modellen:
|
|
|
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
|
|
|
38 |
###################################################################################
|
39 |
#Access-Token (in Secrets)
|
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:
|