zach commited on
Commit
557e7ca
·
1 Parent(s): 0e508c8

Update README for with different start scripts, minor UI improvements to layout

Browse files
Files changed (2) hide show
  1. README.md +8 -1
  2. src/app.py +9 -9
README.md CHANGED
@@ -83,8 +83,15 @@ Expressive TTS Arena/
83
  ```
84
 
85
  5. Run the application:
 
 
 
 
 
 
 
86
  ```sh
87
- watchfiles "python -m src.app"
88
  ```
89
 
90
  6. Test the application by navigating to the the localhost URL in your browser (e.g. localhost:7860 or http://127.0.0.1:7860)
 
83
  ```
84
 
85
  5. Run the application:
86
+
87
+ Standard
88
+ ```sh
89
+ python -m src.app
90
+ ```
91
+
92
+ With hot-reloading
93
  ```sh
94
+ watchfiles "python -m src.app" src
95
  ```
96
 
97
  6. Test the application by navigating to the the localhost URL in your browser (e.g. localhost:7860 or http://127.0.0.1:7860)
src/app.py CHANGED
@@ -238,11 +238,11 @@ def build_input_section() -> Tuple[gr.Markdown, gr.Dropdown, gr.Textbox, gr.Butt
238
  """Builds the input section including instructions, sample prompt dropdown, prompt input, and generate button"""
239
  instructions = gr.Markdown(
240
  """
241
- 1. **Enter or Generate Text:** Type directly in the Text box, or optionally enter a Prompt, click "Generate text", and edit if needed.
242
- 2. **Synthesize Speech:** Click "Synthesize speech" to generate two audio outputs.
243
- 3. **Listen & Compare:** Playback both options (A & B) to hear the differences.
244
- 4. **Vote for Your Favorite:** Click "Vote for option A" or "Vote for option B" to choose the best one.
245
- """
246
  )
247
  sample_prompt_dropdown = gr.Dropdown(
248
  choices=list(SAMPLE_PROMPTS.keys()),
@@ -253,8 +253,8 @@ def build_input_section() -> Tuple[gr.Markdown, gr.Dropdown, gr.Textbox, gr.Butt
253
  prompt_input = gr.Textbox(
254
  label="Prompt",
255
  placeholder="Enter your prompt...",
256
- lines=2,
257
- max_lines=2,
258
  max_length=PROMPT_MAX_LENGTH,
259
  show_copy_button=True,
260
  )
@@ -276,8 +276,8 @@ def build_output_section() -> (
276
  placeholder="Enter text to synthesize speech...",
277
  interactive=True,
278
  autoscroll=False,
279
- lines=4,
280
- max_lines=12,
281
  max_length=PROMPT_MAX_LENGTH,
282
  show_copy_button=True,
283
  )
 
238
  """Builds the input section including instructions, sample prompt dropdown, prompt input, and generate button"""
239
  instructions = gr.Markdown(
240
  """
241
+ 1. **Enter or Generate Text:** Type directly in the text boxor enter a prompt and click Generate Text” to auto-populate. Edit as needed.
242
+ 2. **Synthesize Speech:** Click Synthesize Speech” to generate two audio outputs.
243
+ 3. **Listen & Compare:** Play back both audio options to hear the differences.
244
+ 4. **Vote for Your Favorite:** Click Vote for Option A or Vote for Option B to cast your vote.
245
+ """
246
  )
247
  sample_prompt_dropdown = gr.Dropdown(
248
  choices=list(SAMPLE_PROMPTS.keys()),
 
253
  prompt_input = gr.Textbox(
254
  label="Prompt",
255
  placeholder="Enter your prompt...",
256
+ lines=3,
257
+ max_lines=8,
258
  max_length=PROMPT_MAX_LENGTH,
259
  show_copy_button=True,
260
  )
 
276
  placeholder="Enter text to synthesize speech...",
277
  interactive=True,
278
  autoscroll=False,
279
+ lines=3,
280
+ max_lines=8,
281
  max_length=PROMPT_MAX_LENGTH,
282
  show_copy_button=True,
283
  )