amedcj commited on
Commit
4ab5184
·
verified ·
1 Parent(s): 247c725

Update app.py

Browse files

Translated some texts into Kurdish Kurmanjî.

Files changed (1) hide show
  1. app.py +15 -5
app.py CHANGED
@@ -147,13 +147,23 @@ def text_to_speech(text):
147
 
148
  print("Creating Gradio interface...")
149
 
150
- # Minimal interface compatible with older Gradio versions
151
  interface = gr.Interface(
152
  fn=text_to_speech,
153
- inputs=gr.Textbox(label="Nivîseke bi kurmancî binivîse"),
154
- outputs=gr.Audio(label="Generated Speech"),
155
- title="Kurmanji Text-to-Speech",
156
- description="Nivîseke bi kurmancî binivîse ku bername wê veguherîne dengî."
 
 
 
 
 
 
 
 
 
 
157
  )
158
 
159
  print("Launching interface...")
 
147
 
148
  print("Creating Gradio interface...")
149
 
150
+ # Interface with Kurdish button texts
151
  interface = gr.Interface(
152
  fn=text_to_speech,
153
+ inputs=gr.Textbox(
154
+ label="Nivîseke bi kurmancî binivîse", # "Write Kurmanji Text"
155
+ placeholder="Mînak: Silav! Ez baş im." # "Example: Hello! I am fine."
156
+ ),
157
+ outputs=gr.Audio(label="Deng"), # "Voice/Sound"
158
+ title="Bernameya Nivîs-bo-Deng ya bi kurmancî - Kurmanji Text-to-Speech",
159
+ description="Nivîseke bi kurmancî binivîse ku bo deng bê veguherandin. / Write Kurmanji Kurdish text and listen to it.",
160
+ submit_btn="Bişîne", # "Send/Submit"
161
+ clear_btn="Paqij bike", # "Clear"
162
+ examples=[
163
+ ["Silav! Ez baş im."],
164
+ ["Tu çawa yî?"],
165
+ ["Ez ji Kurdistanê me."]
166
+ ]
167
  )
168
 
169
  print("Launching interface...")