Spaces:
Sleeping
Sleeping
Update services/utils.py
Browse files- services/utils.py +1 -1
services/utils.py
CHANGED
@@ -42,7 +42,7 @@ def strcuture_document_data(raw_text:str)->dict:
|
|
42 |
temperature = 0.0
|
43 |
model = OpenAI(model_name=model_name, temperature=temperature, max_tokens=800)
|
44 |
doc_query = (
|
45 |
-
"Extract and return a JSON object containing only the
|
46 |
"\nReceipt Data:\n" + raw_text
|
47 |
)
|
48 |
print(raw_text)
|
|
|
42 |
temperature = 0.0
|
43 |
model = OpenAI(model_name=model_name, temperature=temperature, max_tokens=800)
|
44 |
doc_query = (
|
45 |
+
"Extract and return a JSON object containing only the following keys strictly : brand , total_cost , location , no_of_items , purchase_category , Date . "
|
46 |
"\nReceipt Data:\n" + raw_text
|
47 |
)
|
48 |
print(raw_text)
|