Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -238,7 +238,7 @@ def document_data_tool(question):
|
|
| 238 |
return query_response
|
| 239 |
|
| 240 |
|
| 241 |
-
def send_email_with_attachment(recipient_email, subject, body, attachment_path):
|
| 242 |
try:
|
| 243 |
from fastapi import FastAPI
|
| 244 |
|
|
@@ -269,7 +269,7 @@ def send_email_with_attachment(recipient_email, subject, body, attachment_path):
|
|
| 269 |
subtype=MessageType.html)
|
| 270 |
|
| 271 |
fm = FastMail(conf)
|
| 272 |
-
fm.send_message(message)
|
| 273 |
|
| 274 |
|
| 275 |
|
|
|
|
| 238 |
return query_response
|
| 239 |
|
| 240 |
|
| 241 |
+
async def send_email_with_attachment(recipient_email, subject, body, attachment_path):
|
| 242 |
try:
|
| 243 |
from fastapi import FastAPI
|
| 244 |
|
|
|
|
| 269 |
subtype=MessageType.html)
|
| 270 |
|
| 271 |
fm = FastMail(conf)
|
| 272 |
+
await fm.send_message(message)
|
| 273 |
|
| 274 |
|
| 275 |
|