ai-forever commited on
Commit
7504990
·
verified ·
1 Parent(s): 62d3e45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -1,6 +1,15 @@
1
  import spaces
2
  import gradio as gr
3
 
 
 
 
 
 
 
 
 
 
4
  import cv2
5
  import torch
6
  import argparse
@@ -22,14 +31,7 @@ from train_blender import BlenderModule
22
 
23
  from huggingface_hub import snapshot_download
24
 
25
- # Define repository and local directory
26
- repo_id = "ai-forever/GHOST-2.0-repo" # HF repo
27
- local_dir = "./" # Target local directory
28
-
29
- # Download the entire repository
30
- snapshot_download(repo_id=repo_id, local_dir=local_dir)
31
 
32
- print(f"Repository downloaded to: {local_dir}")
33
 
34
  @spaces.GPU
35
  def infer_headswap(source, target):
 
1
  import spaces
2
  import gradio as gr
3
 
4
+ # Define repository and local directory
5
+ repo_id = "ai-forever/GHOST-2.0-repo" # HF repo
6
+ local_dir = "./" # Target local directory
7
+
8
+ # Download the entire repository
9
+ snapshot_download(repo_id=repo_id, local_dir=local_dir)
10
+
11
+ print(f"Repository downloaded to: {local_dir}")
12
+
13
  import cv2
14
  import torch
15
  import argparse
 
31
 
32
  from huggingface_hub import snapshot_download
33
 
 
 
 
 
 
 
34
 
 
35
 
36
  @spaces.GPU
37
  def infer_headswap(source, target):