oversai-models / app.py
ogirald0's picture
Simplified app to show text analyzer directly
31615ab
raw
history blame contribute delete
449 Bytes
import gradio as gr
from src.models.text_classification import TextClassificationModel
import logging
# Configure logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
# Initialize model
logger.info("Initializing Text Classification model...")
model = TextClassificationModel()
# Create the interface
logger.info("Creating Gradio interface...")
demo = model.create_interface()
# Launch the interface
demo.launch()