# UCI Phonotactic Calculator Gradio Demo for Hugging Face Spaces # This application demonstrates the enhanced UCI Phonotactic Calculator web interface # Import the web demo UI builder from the uci_phonotactic_calculator package from uci_phonotactic_calculator.web.gradio.web_demo_v2 import main # Create the Gradio interface with the enhanced tabbed UI # The build_ui function configures a Gradio Blocks interface with: # - Home/About tab with introductory information # - Calculator tab with the main functionality # - Examples tab with pre-configured examples # - Documentation tab with detailed information demo = main() # Enable queuing for better performance with multiple users # This prevents the server from being overwhelmed by concurrent requests demo.queue(max_size=10) # Launch the web application # In Hugging Face Spaces, this will make the app available to users if __name__ == "__main__": demo.launch()