Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,7 @@ from scripts.inference import inference_process
|
|
7 |
import argparse
|
8 |
import uuid
|
9 |
|
10 |
-
|
11 |
-
is_shared_ui = False
|
12 |
|
13 |
if(not is_shared_ui):
|
14 |
hallo_dir = snapshot_download(repo_id="fudan-generative-ai/hallo", local_dir="pretrained_models")
|
|
|
7 |
import argparse
|
8 |
import uuid
|
9 |
|
10 |
+
is_shared_ui = True if "fudan-generative-ai/hallo" in os.environ['SPACE_ID'] else False
|
|
|
11 |
|
12 |
if(not is_shared_ui):
|
13 |
hallo_dir = snapshot_download(repo_id="fudan-generative-ai/hallo", local_dir="pretrained_models")
|