ayush2607 commited on
Commit
9ce6d3a
·
verified ·
1 Parent(s): 6f9bdac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -40,16 +40,13 @@ voice_presets = [
40
  demo = gr.Interface(
41
  fn=text_to_speech,
42
  inputs=[
43
- gr.Textbox(label="Enter text (Hindi or English)", placeholder="तुम बहुत अच्छे हो..."),
44
  gr.Dropdown(choices=voice_presets, value="v2/hi_speaker_2", label="Select Voice")
45
  ],
46
  outputs=gr.Audio(label="Generated Speech"),
47
  title="Bark Text-to-Speech",
48
  description="Convert text to speech using the Bark model. Supports Hindi and English text.",
49
- examples=[
50
- ["तुम बहुत अच्छे हो और मैं भी तुम्हारी तरह अच्छा हूँ", "v2/hi_speaker_2"],
51
- ["You are very nice and I am also nice like you", "v2/hi_speaker_1"]
52
- ]
53
  )
54
 
55
  # Launch the app
 
40
  demo = gr.Interface(
41
  fn=text_to_speech,
42
  inputs=[
43
+ gr.Textbox(label="Enter text (Hindi or English)"),
44
  gr.Dropdown(choices=voice_presets, value="v2/hi_speaker_2", label="Select Voice")
45
  ],
46
  outputs=gr.Audio(label="Generated Speech"),
47
  title="Bark Text-to-Speech",
48
  description="Convert text to speech using the Bark model. Supports Hindi and English text.",
49
+
 
 
 
50
  )
51
 
52
  # Launch the app