Spaces:
Running
Running
Commit
•
ca33a23
1
Parent(s):
e4e4cf1
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from scripts.inference import inference_process
|
|
7 |
import argparse
|
8 |
import uuid
|
9 |
|
10 |
-
is_shared_ui = True if "
|
11 |
|
12 |
if(not is_shared_ui):
|
13 |
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")
|