Spaces:
Sleeping
Sleeping
ghadaAlmuaikel
commited on
Commit
•
d65fb49
1
Parent(s):
7abd4ab
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ from gtts import gTTS
|
|
3 |
import os
|
4 |
|
5 |
def greet(name):
|
6 |
-
greeting_text = f"
|
7 |
-
tts = gTTS(text=greeting_text, lang='
|
8 |
tts.save("greeting.mp3")
|
9 |
return "greeting.mp3"
|
10 |
|
@@ -13,9 +13,9 @@ iface = gr.Interface(
|
|
13 |
fn=greet,
|
14 |
inputs="text",
|
15 |
outputs="audio",
|
16 |
-
title="
|
17 |
-
description="
|
18 |
)
|
19 |
|
20 |
# Launch the interface
|
21 |
-
iface.launch()
|
|
|
3 |
import os
|
4 |
|
5 |
def greet(name):
|
6 |
+
greeting_text = f"مرحباً، {name}! أهلاً بك في نظام تحية الذكاء الاصطناعي."
|
7 |
+
tts = gTTS(text=greeting_text, lang='ar')
|
8 |
tts.save("greeting.mp3")
|
9 |
return "greeting.mp3"
|
10 |
|
|
|
13 |
fn=greet,
|
14 |
inputs="text",
|
15 |
outputs="audio",
|
16 |
+
title="تحية صوتية بالذكاء الاصطناعي",
|
17 |
+
description="أدخل اسمك وتلقَّى تحية شخصية بصوت الذكاء الاصطناعي."
|
18 |
)
|
19 |
|
20 |
# Launch the interface
|
21 |
+
iface.launch()
|