This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |