Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ save = 0
|
|
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,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 |
|