sarath-shekkizhar commited on
Commit
1e4339b
1 Parent(s): ccfa62c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -12,10 +12,6 @@ client = OpenAI(
12
  api_key="hf_XXXXX"
13
  )
14
 
15
- MAX_MAX_NEW_TOKENS = 2048
16
- DEFAULT_MAX_NEW_TOKENS = 512
17
- MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
18
-
19
  DESCRIPTION = """
20
  Llama3-TenyxChat-70B is part of the TenyxChat series, models trained to function as useful assistants.
21
  The model is obtained via direct preference tuning using Tenyx's fine-tuning technology. Model details available at our model page.
@@ -52,7 +48,7 @@ def generate(
52
  except APIError as e:
53
  # Handle API errors or network errors here
54
  print(f"Error: {e}")
55
- yield "An error occurred. Please try again later."
56
 
57
 
58
 
 
12
  api_key="hf_XXXXX"
13
  )
14
 
 
 
 
 
15
  DESCRIPTION = """
16
  Llama3-TenyxChat-70B is part of the TenyxChat series, models trained to function as useful assistants.
17
  The model is obtained via direct preference tuning using Tenyx's fine-tuning technology. Model details available at our model page.
 
48
  except APIError as e:
49
  # Handle API errors or network errors here
50
  print(f"Error: {e}")
51
+ yield "API error. The model is currently unavailable/down. Please try again later."
52
 
53
 
54