Spaces:
Runtime error
Runtime error
Commit
β’
e60c004
1
Parent(s):
908925b
Update app.py
Browse files
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=[]):
|