Diana1234 commited on
Commit
e3f7cdd
1 Parent(s): 3bc1015

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ save = 0
15
 
16
 
17
  # Defined arguments
18
- API_KEY = st.write(st.secrets["API_KEY"])# api_key
19
  model_name = "gpt-3.5-turbo" # model name
20
  tool_list_path = "./tools.json" # list of tools path
21
  example_path = "./examples.json" # list of examples path
@@ -32,7 +32,7 @@ biencoder = SentenceTransformer("BAAI/bge-large-en-v1.5", device="cpu")
32
  cross_encoder = CrossEncoder(
33
  "cross-encoder/ms-marco-MiniLM-L-12-v2", max_length=512, device="cpu"
34
  )
35
- client = OpenAI(api_key=API_KEY, timeout=60, max_retries=2)
36
 
37
  # ------------------------------------------------------------------------------------------------------------------------------
38
 
 
15
 
16
 
17
  # Defined arguments
18
+
19
  model_name = "gpt-3.5-turbo" # model name
20
  tool_list_path = "./tools.json" # list of tools path
21
  example_path = "./examples.json" # list of examples path
 
32
  cross_encoder = CrossEncoder(
33
  "cross-encoder/ms-marco-MiniLM-L-12-v2", max_length=512, device="cpu"
34
  )
35
+ client = OpenAI(api_key=st.secrets["API_KEY"], timeout=60, max_retries=2)
36
 
37
  # ------------------------------------------------------------------------------------------------------------------------------
38