File size: 857 Bytes
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
23
# 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()