LuisAVasquez commited on
Commit
2ad0ccc
·
verified ·
1 Parent(s): 61a9a34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -1,7 +1,13 @@
1
  import gradio as gr
 
 
2
 
3
  def greet(name):
4
- return "Hello " + name + "!!"
 
 
 
 
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()