wagner-austin
Migrate Gradio UI to main package structure, simplify HF Spaces repo
0a40f4f
raw
history blame
857 Bytes
# UCI Phonotactic Calculator Gradio UI for Hugging Face Spaces
# This application demonstrates the UCI Phonotactic Calculator web interface
# Import the web demo UI builder from the uci_phonotactic_calculator package
from uci_phonotactic_calculator.web.web_demo import build_ui
# Create the Gradio interface with default settings
# The build_ui function configures a Gradio Blocks interface with:
# - Input fields for training and test CSV files
# - Model selection
# - n-gram order selection
# - Filtering options
# - Results preview and download
demo = build_ui()
# Enable queuing for better performance with multiple users
# This prevents the server from being overwhelmed by concurrent requests
demo.queue()
# Launch the web application
# In Hugging Face Spaces, this will make the app available to users
if __name__ == "__main__":
demo.launch()