cahya commited on
Commit
63e79cc
1 Parent(s): d4a6501

disable token

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -72,14 +72,7 @@ def process(text: str,
72
  st.set_page_config(page_title="Indonesian GPT-2 Demo")
73
 
74
  st.title("Indonesian GPT-2")
75
- """
76
- # disable the token authorization
77
- try:
78
- token = st.secrets["flax_community_token"]
79
- headers = {"Authorization": f"Bearer {token}"}
80
- except FileNotFoundError:
81
- print(f"Token is not found")
82
- """
83
  ft_model = fasttext.load_model('lid.176.ftz')
84
 
85
  # Sidebar
 
72
  st.set_page_config(page_title="Indonesian GPT-2 Demo")
73
 
74
  st.title("Indonesian GPT-2")
75
+
 
 
 
 
 
 
 
76
  ft_model = fasttext.load_model('lid.176.ftz')
77
 
78
  # Sidebar