File size: 926 Bytes
3637854 0a40f4f 3637854 0a40f4f 3637854 0a40f4f 3637854 0a40f4f 3637854 0a40f4f 460624d 0a40f4f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# 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() |