Skip to content

Instantly share code, notes, and snippets.

View patchy631's full-sized avatar
🏠
Working from home

Akshay Pachaar patchy631

🏠
Working from home
View GitHub Profile
@patchy631
patchy631 / whatsapp_mcp_server.py
Created May 2, 2025 12:36
WhatsApp MCP server
# whatsapp_server.py
import os
from typing import Annotated
from pydantic import Field, BeforeValidator
from pydantic_settings import BaseSettings, SettingsConfigDict
from twilio.rest import Client as TwilioClient
from twilio.base.exceptions import TwilioRestException
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import os
os.environ["HF_HOME"] = "/teamspace/studios/this_studio/weights"
os.environ["TORCH_HOME"] = "/teamspace/studios/this_studio/weights"
import gc
import re
import uuid
import textwrap
import nest_asyncio