Spaces:
Sleeping
Sleeping
Update services/utils.py
Browse files- services/utils.py +3 -3
services/utils.py
CHANGED
@@ -95,9 +95,9 @@ def strcuture_document_data(raw_text:str)->dict:
|
|
95 |
result = model.invoke(input.to_string())
|
96 |
|
97 |
time.sleep(0.25)
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
|
102 |
class_object= parser.parse(result)
|
103 |
dict_object=class_object.__dict__
|
|
|
95 |
result = model.invoke(input.to_string())
|
96 |
|
97 |
time.sleep(0.25)
|
98 |
+
print(f"GPT Response {result}")
|
99 |
+
result = extract_json_from_string(result)
|
100 |
+
print(f"Formatted Response : {result}")
|
101 |
|
102 |
class_object= parser.parse(result)
|
103 |
dict_object=class_object.__dict__
|