Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
gotsysdba committed Jan 17, 2025
1 parent cb96e36 commit d45ab30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/oaim_sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ def main() -> None:
st.logo("sandbox/media/logo_light.png")

# Setup Settings State
if "user_settings" not in state or "server_settings" not in state:
api_endpoint = f"{state.server['url']}:{state.server['port']}/v1/settings"
# Create the client in the server and store results in session_state
api_endpoint = f"{state.server['url']}:{state.server['port']}/v1/settings"
if "user_settings" not in state:
try:
state.user_settings = api_call.post(url=api_endpoint, params={"client": client_gen_id()})["data"]
except api_call.ApiError as ex:
st.error(ex, icon="🚨")
if "server_settings" not in state:
try:
state.server_settings = api_call.get(url=api_endpoint, params={"client": "server"})["data"]
except api_call.ApiError as ex:
Expand Down

0 comments on commit d45ab30

Please sign in to comment.