Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ except ImportError:
|
|
| 20 |
|
| 21 |
# Configuration
|
| 22 |
MODEL_PATH = "v4_indic.pt"
|
| 23 |
-
DEFAULT_SPEAKER = "hindi_female"
|
| 24 |
DEFAULT_SAMPLE_RATE = 48000
|
| 25 |
|
| 26 |
print(f"===== Application Startup at {datetime.now().strftime('%Y-%m-%d %H:%M:%S')} =====")
|
|
@@ -234,10 +234,10 @@ with gr.Blocks(title="Silero v4 Indic TTS") as demo:
|
|
| 234 |
outputs=audio_output
|
| 235 |
)
|
| 236 |
|
| 237 |
-
# Launch the app
|
| 238 |
if __name__ == "__main__":
|
| 239 |
demo.launch(
|
| 240 |
server_name="0.0.0.0",
|
| 241 |
server_port=7860,
|
| 242 |
-
|
| 243 |
)
|
|
|
|
| 20 |
|
| 21 |
# Configuration
|
| 22 |
MODEL_PATH = "v4_indic.pt"
|
| 23 |
+
DEFAULT_SPEAKER = "hindi_female"
|
| 24 |
DEFAULT_SAMPLE_RATE = 48000
|
| 25 |
|
| 26 |
print(f"===== Application Startup at {datetime.now().strftime('%Y-%m-%d %H:%M:%S')} =====")
|
|
|
|
| 234 |
outputs=audio_output
|
| 235 |
)
|
| 236 |
|
| 237 |
+
# Launch the app with API enabled
|
| 238 |
if __name__ == "__main__":
|
| 239 |
demo.launch(
|
| 240 |
server_name="0.0.0.0",
|
| 241 |
server_port=7860,
|
| 242 |
+
show_api=True # This enables the API documentation
|
| 243 |
)
|