toshuu commited on
Commit
4f01cd3
·
verified ·
1 Parent(s): e5e17e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -20,7 +20,7 @@ except ImportError:
20
 
21
  # Configuration
22
  MODEL_PATH = "v4_indic.pt"
23
- DEFAULT_SPEAKER = "hindi_female" # Changed from 'xenia' to valid speaker
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
- ssr_mode=True
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
  )