Vinay15 commited on
Commit
7b03b11
·
verified ·
1 Parent(s): 6dc7420

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -54,13 +54,18 @@ def text_to_speech(input_text):
54
 
55
  return output_file
56
 
57
- # Step 3: Create Gradio interface
58
  iface = gr.Interface(
59
  fn=text_to_speech,
60
  inputs="text",
61
  outputs="audio",
62
  title="Fine-tuning TTS for Technical Vocabulary",
63
- description="Enter text with technical jargon for TTS conversion. The model will handle abbreviations and technical terms for better pronunciation."
 
 
 
 
 
64
  )
65
 
66
  # Step 4: Launch the app
 
54
 
55
  return output_file
56
 
57
+ # Step 3: Create Gradio interface with examples
58
  iface = gr.Interface(
59
  fn=text_to_speech,
60
  inputs="text",
61
  outputs="audio",
62
  title="Fine-tuning TTS for Technical Vocabulary",
63
+ description="Enter text with technical jargon for TTS conversion. The model will handle abbreviations and technical terms for better pronunciation.",
64
+ examples=[
65
+ ["Please configure the API settings for OAuth and JSON data processing."],
66
+ ["Ensure that CUDA and TensorFlow are optimized for deep learning models."],
67
+ ["Update the SQL database to include REST endpoints and support NOSQL features."]
68
+ ]
69
  )
70
 
71
  # Step 4: Launch the app