Update app.py
Browse files
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
|