Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -98,14 +98,7 @@ json_output_embedding = instructor_model.predict(
|
|
98 |
|
99 |
json_file = open(json_output_embedding, "r")
|
100 |
json_dict = json.load(json_file)
|
101 |
-
dense_embedding = json_dict["data"]
|
102 |
-
|
103 |
-
#dense_embedding_arr = np.array(
|
104 |
-
# literal_eval(dense_embedding_output)[0], dtype=np.float64
|
105 |
-
#)
|
106 |
-
#dense_embedding = dense_embedding_arr.tolist()
|
107 |
-
#print(type(dense_embedding[2]))
|
108 |
-
# dense_embedding = [float(x) for x in dense_embedding_output[0]]
|
109 |
|
110 |
text_embedding_instructions_choice = [
|
111 |
"Represent the financial statement for retrieval:",
|
|
|
98 |
|
99 |
json_file = open(json_output_embedding, "r")
|
100 |
json_dict = json.load(json_file)
|
101 |
+
dense_embedding = list(map(float, json_dict["data"][0]))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
|
103 |
text_embedding_instructions_choice = [
|
104 |
"Represent the financial statement for retrieval:",
|