chat-bot / app /__init__.py
surahj's picture
Initial commit: LLM Chat Interface for HF Spaces
c2f9396
raw
history blame contribute delete
735 Bytes
import warnings
import logging
# Suppress SSL warnings from urllib3
warnings.filterwarnings("ignore", message=".*urllib3 v2 only supports OpenSSL 1.1.1+.*")
warnings.filterwarnings("ignore", message=".*LibreSSL.*")
# Suppress PyTorch deprecation warnings
warnings.filterwarnings(
"ignore", message=".*torch.utils._pytree._register_pytree_node.*"
)
warnings.filterwarnings(
"ignore", message=".*Please use torch.utils._pytree.register_pytree_node.*"
)
# Configure logging
logging.basicConfig(
level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
)
# LLM API - GPT Clone
# A ChatGPT-like API with SSE streaming support using free LLM models
__version__ = "1.0.0"
__author__ = "LLM API Team"