Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,23 +5,9 @@ from PIL import Image
|
|
5 |
from transformers import BlipProcessor, BlipForConditionalGeneration
|
6 |
from outetts.v0_1.interface import InterfaceHF, InterfaceGGUF
|
7 |
|
8 |
-
# Initialize the interface with the Hugging Face model
|
9 |
interface = InterfaceHF("OuteAI/OuteTTS-0.1-350M")
|
10 |
-
|
11 |
-
# Or initialize the interface with a GGUF model
|
12 |
-
# interface = InterfaceGGUF("path/to/model.gguf")
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-large")
|
21 |
model = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-large").to("cpu")
|
22 |
-
pipe = StableAudioPipeline.from_pretrained("stabilityai/stable-audio-open-1.0")
|
23 |
-
pipe = pipe.to("cpu")
|
24 |
-
|
25 |
|
26 |
|
27 |
class Aspecto():
|
|
|
5 |
from transformers import BlipProcessor, BlipForConditionalGeneration
|
6 |
from outetts.v0_1.interface import InterfaceHF, InterfaceGGUF
|
7 |
|
|
|
8 |
interface = InterfaceHF("OuteAI/OuteTTS-0.1-350M")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-large")
|
10 |
model = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-large").to("cpu")
|
|
|
|
|
|
|
11 |
|
12 |
|
13 |
class Aspecto():
|