multimodalart HF staff commited on
Commit
e60c004
β€’
1 Parent(s): 908925b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,8 +8,8 @@ model_id="haoheliu/AudioLDM-S-Full"
8
 
9
  is_shared_ui = True if "AIFILMS/audioldm-text-to-audio-generation" in os.environ['SPACE_ID'] else False
10
 
11
-
12
- audioldm = build_model()
13
  # audioldm=None
14
 
15
  # def predict(input, history=[]):
 
8
 
9
  is_shared_ui = True if "AIFILMS/audioldm-text-to-audio-generation" in os.environ['SPACE_ID'] else False
10
 
11
+ if(is_shared_ui):
12
+ audioldm = build_model()
13
  # audioldm=None
14
 
15
  # def predict(input, history=[]):