akhaliq HF staff commited on
Commit
21969ef
·
verified ·
1 Parent(s): 69cde58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -1,8 +1,13 @@
1
  import gradio as gr
2
  import ai_gradio
 
3
 
4
 
5
- gr.load(
6
  name='kokoro:kokoro-v0_19',
7
  src=ai_gradio.registry,
8
- ).launch()
 
 
 
 
 
1
  import gradio as gr
2
  import ai_gradio
3
+ import spaces
4
 
5
 
6
+ demo = gr.load(
7
  name='kokoro:kokoro-v0_19',
8
  src=ai_gradio.registry,
9
+ )
10
+
11
+ demo.fn = spaces.GPU()(demo.fn)
12
+
13
+ demo.launch()