add address
Browse files
app.py
CHANGED
@@ -58,12 +58,13 @@ def format_with_groq(text: str, api_key: str) -> str:
|
|
58 |
"You are a receipt data extraction expert. Extract and format the receipt data into a clear JSON structure.\n"
|
59 |
"Look for these key pieces of information:\n"
|
60 |
"1. Restaurant/store name\n"
|
61 |
-
"2.
|
62 |
-
"3.
|
63 |
-
"4.
|
64 |
-
"5.
|
65 |
-
"6.
|
66 |
-
"7.
|
|
|
67 |
"Format numbers as actual numbers, not strings."
|
68 |
)
|
69 |
},
|
@@ -161,6 +162,7 @@ def process_with_openai(text: str, api_key: str) -> dict:
|
|
161 |
"Convert the receipt data into this exact JSON format:\n"
|
162 |
"{\n"
|
163 |
" 'restaurant_name': string,\n"
|
|
|
164 |
" 'date': string,\n"
|
165 |
" 'time': string,\n"
|
166 |
" 'table_number': string or number,\n"
|
|
|
58 |
"You are a receipt data extraction expert. Extract and format the receipt data into a clear JSON structure.\n"
|
59 |
"Look for these key pieces of information:\n"
|
60 |
"1. Restaurant/store name\n"
|
61 |
+
"2. Restaurant Address /store address\n"
|
62 |
+
"3. Date and time\n"
|
63 |
+
"4. Individual items with quantities and prices\n"
|
64 |
+
"5. Table number if present\n"
|
65 |
+
"6. Server name if present\n"
|
66 |
+
"7. Payment details\n"
|
67 |
+
"8. Receipt/order number\n"
|
68 |
"Format numbers as actual numbers, not strings."
|
69 |
)
|
70 |
},
|
|
|
162 |
"Convert the receipt data into this exact JSON format:\n"
|
163 |
"{\n"
|
164 |
" 'restaurant_name': string,\n"
|
165 |
+
" 'restaurant_address': string,\n"
|
166 |
" 'date': string,\n"
|
167 |
" 'time': string,\n"
|
168 |
" 'table_number': string or number,\n"
|