Spaces:
Sleeping
Sleeping
Update chat/model_manage.py
Browse files- chat/model_manage.py +1 -1
chat/model_manage.py
CHANGED
|
@@ -100,7 +100,7 @@ tools = [search_for_relevant_article, search_for_specific_article, answer_others
|
|
| 100 |
tools_name = ['search_for_relevant_article', 'search_for_specific_article', 'answer_others_questions']
|
| 101 |
|
| 102 |
# load key, prepare config ------------------------
|
| 103 |
-
if os.path.
|
| 104 |
with open("apikey.txt","r") as apikey:
|
| 105 |
key = apikey.readline()
|
| 106 |
else:
|
|
|
|
| 100 |
tools_name = ['search_for_relevant_article', 'search_for_specific_article', 'answer_others_questions']
|
| 101 |
|
| 102 |
# load key, prepare config ------------------------
|
| 103 |
+
if os.path.exists('apikey.txt'):
|
| 104 |
with open("apikey.txt","r") as apikey:
|
| 105 |
key = apikey.readline()
|
| 106 |
else:
|