Update app.py
Browse files
app.py
CHANGED
@@ -11,13 +11,10 @@ from scripts.inference import inference_process
|
|
11 |
import argparse
|
12 |
import uuid
|
13 |
|
14 |
-
is_shared_ui = True if "
|
15 |
|
16 |
AUDIO_MAX_DURATION = 4000
|
17 |
|
18 |
-
if(not is_shared_ui):
|
19 |
-
hallo_dir = snapshot_download(repo_id="fudan-generative-ai/hallo", local_dir="pretrained_models")
|
20 |
-
|
21 |
#############
|
22 |
# UTILITIES #
|
23 |
#############
|
|
|
11 |
import argparse
|
12 |
import uuid
|
13 |
|
14 |
+
is_shared_ui = True if "fffiloni/tts-hallo-talking-portrait" in os.environ['SPACE_ID'] else False
|
15 |
|
16 |
AUDIO_MAX_DURATION = 4000
|
17 |
|
|
|
|
|
|
|
18 |
#############
|
19 |
# UTILITIES #
|
20 |
#############
|