wagner-austin commited on
Commit
3637854
·
1 Parent(s): 0a40f4f

changed to new web demo v2

Browse files
Files changed (1) hide show
  1. app.py +10 -11
app.py CHANGED
@@ -1,21 +1,20 @@
1
- # UCI Phonotactic Calculator Gradio UI for Hugging Face Spaces
2
- # This application demonstrates the UCI Phonotactic Calculator web interface
3
 
4
  # Import the web demo UI builder from the uci_phonotactic_calculator package
5
- from uci_phonotactic_calculator.web.web_demo import build_ui
6
 
7
- # Create the Gradio interface with default settings
8
  # The build_ui function configures a Gradio Blocks interface with:
9
- # - Input fields for training and test CSV files
10
- # - Model selection
11
- # - n-gram order selection
12
- # - Filtering options
13
- # - Results preview and download
14
- demo = build_ui()
15
 
16
  # Enable queuing for better performance with multiple users
17
  # This prevents the server from being overwhelmed by concurrent requests
18
- demo.queue()
19
 
20
  # Launch the web application
21
  # In Hugging Face Spaces, this will make the app available to users
 
1
+ # UCI Phonotactic Calculator Gradio Demo for Hugging Face Spaces
2
+ # This application demonstrates the enhanced UCI Phonotactic Calculator web interface
3
 
4
  # Import the web demo UI builder from the uci_phonotactic_calculator package
5
+ from uci_phonotactic_calculator.web.gradio.web_demo_v2 import main
6
 
7
+ # Create the Gradio interface with the enhanced tabbed UI
8
  # The build_ui function configures a Gradio Blocks interface with:
9
+ # - Home/About tab with introductory information
10
+ # - Calculator tab with the main functionality
11
+ # - Examples tab with pre-configured examples
12
+ # - Documentation tab with detailed information
13
+ demo = main()
 
14
 
15
  # Enable queuing for better performance with multiple users
16
  # This prevents the server from being overwhelmed by concurrent requests
17
+ demo.queue(max_size=10)
18
 
19
  # Launch the web application
20
  # In Hugging Face Spaces, this will make the app available to users