Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
import outetts
|
4 |
-
from outetts.version.v2.interface import
|
5 |
import torch
|
6 |
import spaces
|
7 |
|
8 |
def get_available_speakers():
|
9 |
-
speakers = list(
|
10 |
return speakers
|
11 |
|
12 |
@spaces.GPU
|
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
import outetts
|
4 |
+
from outetts.version.v2.interface import DEFAULT_SPEAKERS # Fixed the import syntax
|
5 |
import torch
|
6 |
import spaces
|
7 |
|
8 |
def get_available_speakers():
|
9 |
+
speakers = list(DEFAULT_SPEAKERS.keys()) # Fixed variable name
|
10 |
return speakers
|
11 |
|
12 |
@spaces.GPU
|