Vinay15 commited on
Commit
78e27d5
·
verified ·
1 Parent(s): c15a91d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -4
app.py CHANGED
@@ -61,17 +61,27 @@ def text_to_speech(input_text):
61
 
62
  return output_file
63
 
64
- # Step 3: Create Gradio interface with examples
65
  iface = gr.Interface(
66
  fn=text_to_speech,
67
  inputs="text",
68
  outputs="audio",
69
  title="Fine-tuning TTS for Technical Vocabulary",
70
- description="Enter text with technical jargon for TTS conversion. The model will handle abbreviations and technical terms for better pronunciation.",
 
 
 
 
 
 
 
 
 
71
  examples=[
72
- ["The API allows integration with OAuth and REST for scalable web services."],
73
  ["Using CUDA for deep learning optimizes the model training on GPUs."],
74
- ["In TTS models, the vocoder is essential for natural-sounding speech."]
 
75
  ]
76
  )
77
 
 
61
 
62
  return output_file
63
 
64
+ # Step 3: Create Gradio interface with examples, model description, and processing time note
65
  iface = gr.Interface(
66
  fn=text_to_speech,
67
  inputs="text",
68
  outputs="audio",
69
  title="Fine-tuning TTS for Technical Vocabulary",
70
+ description="""
71
+ Enter text containing technical terms or abbreviations for text-to-speech conversion. The model has been fine-tuned with a dataset specifically prepared to handle technical vocabulary and acronyms. This includes a pronunciation dictionary for terms such as API, CUDA, and OAuth. Sentence segmentation and custom pronunciation handling further optimize the output for natural, intelligible speech.
72
+
73
+ **Sample Examples:**
74
+ - "The API allows integration with OAuth and REST for scalable web services."
75
+ - "TensorFlow provides comprehensive tools for deep learning across various platforms."
76
+ - "What are continuous integration systems, and what is their role in the automated-build process?"
77
+
78
+ **Note:** Processing time may vary based on sentence length. Longer sentences may take additional time to generate speech. Additionally, the model’s performance improves as more technical terms are added to the pronunciation dictionary, enhancing accuracy for specialized vocabulary.
79
+ """,
80
  examples=[
81
+ ["What are continuous integration systems, and what is their role in the automated-build process?"],
82
  ["Using CUDA for deep learning optimizes the model training on GPUs."],
83
+ ["In TTS models, the vocoder is essential for natural-sounding speech."],
84
+ ["What is GPU?"]
85
  ]
86
  )
87