Spaces:
Runtime error
Runtime error
disable token
Browse files
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
|