Spaces:
Sleeping
Sleeping
from discord_webhook import DiscordWebhook | |
import os | |
from dotenv import load_dotenv | |
load_dotenv() # take environment variables from .env. | |
def make_discord_trace_text(text_message): | |
webhook = DiscordWebhook(url=os.environ["DISCORD_HOOK"], | |
username="Somebody opened RAG_UI", | |
content=text_message) | |
webhook.execute() |