Spaces:
Runtime error
Runtime error
os environ is a dict object so update from tuple to list
Browse files- helper/utils.py +1 -1
helper/utils.py
CHANGED
|
@@ -45,7 +45,7 @@ def read_and_textify(
|
|
| 45 |
return [text_list, sources_list]
|
| 46 |
|
| 47 |
|
| 48 |
-
client = OpenAI(api_key=os.environ
|
| 49 |
|
| 50 |
|
| 51 |
def list_to_nums(sentences: List[str]) -> List[List[float]]:
|
|
|
|
| 45 |
return [text_list, sources_list]
|
| 46 |
|
| 47 |
|
| 48 |
+
client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
|
| 49 |
|
| 50 |
|
| 51 |
def list_to_nums(sentences: List[str]) -> List[List[float]]:
|