zolicsaki commited on
Commit
1739422
·
verified ·
1 Parent(s): 96c79d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -95,7 +95,7 @@ async def run_samba_api_inference(query, system_prompt = None, ignore_context=Fa
95
  post_response.raise_for_status()
96
  except requests.exceptions.HTTPError as e:
97
  if post_response.status_code in {401, 503}:
98
- st.info(f"Attempt failed due to rate limit or gate timeout. Status code: {post_response.status_code}. Trying again in {num_seconds_to_sleep} seconds...")
99
  return ""
100
  if post_response.status_code in {429, 504}:
101
  st.info("Rate limit hit because of all the pipelined queries, wait one second...")
 
95
  post_response.raise_for_status()
96
  except requests.exceptions.HTTPError as e:
97
  if post_response.status_code in {401, 503}:
98
+ st.info(f"Invalid Key! Please make sure you have a valid SambaCloud key from https://cloud.sambanova.ai/.")
99
  return ""
100
  if post_response.status_code in {429, 504}:
101
  st.info("Rate limit hit because of all the pipelined queries, wait one second...")