napstablook911 commited on
Commit
7dc27f2
·
verified ·
1 Parent(s): f2858a1

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +3 -3
src/streamlit_app.py CHANGED
@@ -38,12 +38,12 @@ def load_models():
38
 
39
  # Caricamento del modello Text-to-Audio (Stable Audio Open - 1.0)
40
  from diffusers import DiffusionPipeline
41
- st.write("Caricamento del modello Stable Audio Open - 1.0 per la generazione del soundscape...")
42
  # ******************** MODIFICA QUI ********************
43
  # Assicurati che non ci sia torch_dtype=torch.float16 e che vada sulla CPU
44
- stable_audio_pipeline = DiffusionPipeline.from_pretrained("stabilityai/stable-audio-open-1.0", force_download=True).to(device)
45
  # ******************************************************
46
- st.write("Modello Stable Audio Open 1.0 caricato.")
47
 
48
  return vit_gpt2_feature_extractor, vit_gpt2_model, vit_gpt2_tokenizer, stable_audio_pipeline
49
 
 
38
 
39
  # Caricamento del modello Text-to-Audio (Stable Audio Open - 1.0)
40
  from diffusers import DiffusionPipeline
41
+ st.write("Caricamento del modello Stable Audio Open Small per la generazione del soundscape...")
42
  # ******************** MODIFICA QUI ********************
43
  # Assicurati che non ci sia torch_dtype=torch.float16 e che vada sulla CPU
44
+ stable_audio_pipeline = DiffusionPipeline.from_pretrained("stabilityai/stable-audio-open-small", force_download=True).to(device)
45
  # ******************************************************
46
+ st.write("Modello Stable Audio Open Small caricato.")
47
 
48
  return vit_gpt2_feature_extractor, vit_gpt2_model, vit_gpt2_tokenizer, stable_audio_pipeline
49