guardiancc commited on
Commit
6faa121
·
verified ·
1 Parent(s): eee2840

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ is_shared_ui = True if "fudan-generative-ai/hallo" in os.environ['SPACE_ID'] els
13
  if(not is_shared_ui):
14
  hallo_dir = snapshot_download(repo_id="fudan-generative-ai/hallo", local_dir="pretrained_models")
15
 
16
- @spaces.GPU
17
  def run_inference(source_image, driving_audio, progress=gr.Progress(track_tqdm=True)):
18
  if is_shared_ui:
19
  raise gr.Error("This Space only works in duplicated instances")
 
13
  if(not is_shared_ui):
14
  hallo_dir = snapshot_download(repo_id="fudan-generative-ai/hallo", local_dir="pretrained_models")
15
 
16
+ @spaces.GPU(duration=230)
17
  def run_inference(source_image, driving_audio, progress=gr.Progress(track_tqdm=True)):
18
  if is_shared_ui:
19
  raise gr.Error("This Space only works in duplicated instances")