Spaces:
Build error
Build error
Commit
·
ab6c0e3
1
Parent(s):
32e4b2a
Add prompt edit and api key config
Browse files- app/main.py +4 -4
app/main.py
CHANGED
@@ -22,7 +22,7 @@ from app.handlers.media_handler import WhatsAppMediaHandler
|
|
22 |
from app.services.cache import MessageCache
|
23 |
from app.services.chat_manager import ChatManager
|
24 |
from app.api.api_prompt import prompt_router
|
25 |
-
from app.utils.load_env import ACCESS_TOKEN
|
26 |
|
27 |
# Configure logging
|
28 |
logging.basicConfig(
|
@@ -114,9 +114,9 @@ async def webhook(request: Request):
|
|
114 |
print(f"payload: {payload}")
|
115 |
response = await webhook_handler.process_webhook(
|
116 |
payload=payload,
|
117 |
-
whatsapp_token=
|
118 |
-
whatsapp_url=
|
119 |
-
gemini_api=
|
120 |
)
|
121 |
return JSONResponse(
|
122 |
content=response.__dict__,
|
|
|
22 |
from app.services.cache import MessageCache
|
23 |
from app.services.chat_manager import ChatManager
|
24 |
from app.api.api_prompt import prompt_router
|
25 |
+
from app.utils.load_env import ACCESS_TOKEN, WHATSAPP_API_URL, GEMNI_API
|
26 |
|
27 |
# Configure logging
|
28 |
logging.basicConfig(
|
|
|
114 |
print(f"payload: {payload}")
|
115 |
response = await webhook_handler.process_webhook(
|
116 |
payload=payload,
|
117 |
+
whatsapp_token=ACCESS_TOKEN,
|
118 |
+
whatsapp_url=WHATSAPP_API_URL,
|
119 |
+
gemini_api=GEMNI_API,
|
120 |
)
|
121 |
return JSONResponse(
|
122 |
content=response.__dict__,
|