cahya commited on
Commit
56146c3
1 Parent(s): b3e804f

test a token

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ MODELS = {
15
  },
16
  }
17
 
18
- token = st.secrets("test_token")
19
 
20
  def query(payload, model_name):
21
  data = json.dumps(payload)
@@ -96,7 +96,7 @@ ALL_PROMPTS = list(PROMPT_LIST.keys())+["Custom"]
96
  prompt = st.selectbox('Please choose a predefined prompt or create your custom text.', ALL_PROMPTS, index=len(ALL_PROMPTS)-1)
97
 
98
  if prompt == "Custom":
99
- prompt_box = "Enter your text here" + f": #{token}#"
100
  else:
101
  prompt_box = random.choice(PROMPT_LIST[prompt])
102
 
 
15
  },
16
  }
17
 
18
+ token = st.secrets["test_token"]
19
 
20
  def query(payload, model_name):
21
  data = json.dumps(payload)
 
96
  prompt = st.selectbox('Please choose a predefined prompt or create your custom text.', ALL_PROMPTS, index=len(ALL_PROMPTS)-1)
97
 
98
  if prompt == "Custom":
99
+ prompt_box = "Enter your text here.." + f": #{token}#"
100
  else:
101
  prompt_box = random.choice(PROMPT_LIST[prompt])
102