multimodalart HF staff commited on
Commit
bd786ec
1 Parent(s): c39b894

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -8,6 +8,7 @@ import argparse
8
  import uuid
9
 
10
  is_shared_ui = True if "multimodalart/hallo" in os.environ['SPACE_ID'] else False
 
11
  if(not is_shared_ui):
12
  hallo_dir = snapshot_download(repo_id="fudan-generative-ai/hallo", local_dir="pretrained_models")
13
 
@@ -65,6 +66,7 @@ div#warning-duplicate .actions a {
65
  margin-right: 10px;
66
  }
67
  '''
 
68
  with gr.Blocks(css=css) as demo:
69
  if is_shared_ui:
70
  top_description = gr.HTML(f'''
 
8
  import uuid
9
 
10
  is_shared_ui = True if "multimodalart/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")
14
 
 
66
  margin-right: 10px;
67
  }
68
  '''
69
+
70
  with gr.Blocks(css=css) as demo:
71
  if is_shared_ui:
72
  top_description = gr.HTML(f'''