Spaces:
Running
Running
File size: 449 Bytes
18869bb 31615ab 18869bb 31615ab 3b7a61c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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() |