Spaces:
Runtime error
Runtime error
Upload 6 files
Browse files
app.py
CHANGED
@@ -98,7 +98,8 @@ json_output_embedding = instructor_model.predict(
|
|
98 |
|
99 |
json_file = open(json_output_embedding, "r")
|
100 |
json_dict = json.load(json_file)
|
101 |
-
|
|
|
102 |
|
103 |
text_embedding_instructions_choice = [
|
104 |
"Represent the financial statement for retrieval:",
|
|
|
98 |
|
99 |
json_file = open(json_output_embedding, "r")
|
100 |
json_dict = json.load(json_file)
|
101 |
+
dense_array = np.array(json_dict["data"][0], dtype=np.float64)
|
102 |
+
dense_embedding = dense_array.tolist()
|
103 |
|
104 |
text_embedding_instructions_choice = [
|
105 |
"Represent the financial statement for retrieval:",
|