gptbase commited on
Commit
21653ff
1 Parent(s): 8e9317a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,7 +21,7 @@ with st.sidebar:
21
  "API Key",
22
  type="password",
23
  placeholder="Paste your API key here (ak-...)",
24
- help="You can get your API key from https://mygpt.felo.me/api-keys.",
25
  value=st.session_state.get("API_KEY", ""),
26
  )
27
  if user_secret:
@@ -84,7 +84,7 @@ with tab2:
84
  if button or st.session_state.get("submit"):
85
  if api_key and ai_id and user_input:
86
  st.session_state["submit"] = True
87
- question_url = f'https://mygpt.felo.me/api/v1/question/{ai_id}'
88
  headers = {"Authorization": f"Bearer {api_key}"}
89
  data = {"question": user_input}
90
  # response = requests.post(question_url, headers=headers, data=json.dumps(data))
 
21
  "API Key",
22
  type="password",
23
  placeholder="Paste your API key here (ak-...)",
24
+ help="You can get your API key from https://gptbase.ai/api-keys.",
25
  value=st.session_state.get("API_KEY", ""),
26
  )
27
  if user_secret:
 
84
  if button or st.session_state.get("submit"):
85
  if api_key and ai_id and user_input:
86
  st.session_state["submit"] = True
87
+ question_url = f'https://gptbase.ai/api/v1/question/{ai_id}'
88
  headers = {"Authorization": f"Bearer {api_key}"}
89
  data = {"question": user_input}
90
  # response = requests.post(question_url, headers=headers, data=json.dumps(data))