cahya commited on
Commit
ba901f8
1 Parent(s): 5329452
Files changed (2) hide show
  1. app.py +3 -0
  2. huggingwayang.png +0 -0
app.py CHANGED
@@ -7,6 +7,7 @@ import random
7
 
8
  token = st.secrets["flax_community_token"]
9
  headers = {"Authorization": f"Bearer {token}"}
 
10
  MODELS = {
11
  "GPT-2 Small": {
12
  "url": "https://api-inference.huggingface.co/models/flax-community/gpt2-small-indonesian"
@@ -50,6 +51,8 @@ st.set_page_config(page_title="Indonesian GPT-2 Demo")
50
 
51
  st.title("Indonesian GPT-2")
52
 
 
 
53
  st.sidebar.subheader("Configurable parameters")
54
 
55
  max_len = st.sidebar.number_input(
 
7
 
8
  token = st.secrets["flax_community_token"]
9
  headers = {"Authorization": f"Bearer {token}"}
10
+ LOGO = "huggingwayang.png"
11
  MODELS = {
12
  "GPT-2 Small": {
13
  "url": "https://api-inference.huggingface.co/models/flax-community/gpt2-small-indonesian"
 
51
 
52
  st.title("Indonesian GPT-2")
53
 
54
+ # Sidebar
55
+ st.sidebar.image(LOGO)
56
  st.sidebar.subheader("Configurable parameters")
57
 
58
  max_len = st.sidebar.number_input(
huggingwayang.png ADDED