Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -82,7 +82,8 @@ def process_receipt(model, image):
|
|
| 82 |
@app.route('/api/write-report', methods=['POST'])
|
| 83 |
def generate_report():
|
| 84 |
prompt = """You are the TrueSpend AI analyst, analyze this transaction data
|
| 85 |
-
and write an insightful business report on the spending habits of the
|
|
|
|
| 86 |
model = configure_gemini()
|
| 87 |
try:
|
| 88 |
# Get the transaction data from the request body
|
|
|
|
| 82 |
@app.route('/api/write-report', methods=['POST'])
|
| 83 |
def generate_report():
|
| 84 |
prompt = """You are the TrueSpend AI analyst, analyze this transaction data
|
| 85 |
+
and write an insightful business report on the spending habits of the employees.
|
| 86 |
+
Make sure the report is in plain text"""
|
| 87 |
model = configure_gemini()
|
| 88 |
try:
|
| 89 |
# Get the transaction data from the request body
|