Spaces:
Runtime error
Runtime error
disable token
Browse files
app.py
CHANGED
@@ -72,13 +72,14 @@ def process(text: str,
|
|
72 |
st.set_page_config(page_title="Indonesian GPT-2 Demo")
|
73 |
|
74 |
st.title("Indonesian GPT-2")
|
75 |
-
|
|
|
76 |
try:
|
77 |
token = st.secrets["flax_community_token"]
|
78 |
headers = {"Authorization": f"Bearer {token}"}
|
79 |
except FileNotFoundError:
|
80 |
print(f"Token is not found")
|
81 |
-
|
82 |
ft_model = fasttext.load_model('lid.176.ftz')
|
83 |
|
84 |
# Sidebar
|
|
|
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
|