Spaces:
Sleeping
Sleeping
LuisAVasquez
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,13 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
2 |
|
3 |
def greet(name):
|
4 |
-
|
|
|
|
|
|
|
|
|
5 |
|
6 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
import os
|
3 |
+
import bark
|
4 |
|
5 |
def greet(name):
|
6 |
+
if os.paht.isfile("pm_voice.npz"):
|
7 |
+
preffix = "Found the voice file"
|
8 |
+
else:
|
9 |
+
preffix = "Voice file not found"
|
10 |
+
return "Hello " + name + "!!" + preffix
|
11 |
|
12 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
13 |
iface.launch()
|