Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ from moviepy import VideoFileClip
|
|
11 |
from datetime import datetime, timedelta
|
12 |
from huggingface_hub import hf_hub_download, snapshot_download, login
|
13 |
HF_TOKEN=os.environ.get('HF_TOKEN')
|
14 |
-
|
15 |
import insightface
|
16 |
from insightface.app import FaceAnalysis
|
17 |
from facexlib.parsing import init_parsing_model
|
@@ -141,6 +141,7 @@ def delete_old_files():
|
|
141 |
time.sleep(600)
|
142 |
@spaces.GPU(duration=70)
|
143 |
def plex(prompt,image_input,seed_value,scale_status,rife_status,progress=gr.Progress(track_tqdm=True)):
|
|
|
144 |
if seed == -1:
|
145 |
seed = random.randint(0, 2**8 - 1)
|
146 |
|
|
|
11 |
from datetime import datetime, timedelta
|
12 |
from huggingface_hub import hf_hub_download, snapshot_download, login
|
13 |
HF_TOKEN=os.environ.get('HF_TOKEN')
|
14 |
+
login(token=HF_TOKEN)
|
15 |
import insightface
|
16 |
from insightface.app import FaceAnalysis
|
17 |
from facexlib.parsing import init_parsing_model
|
|
|
141 |
time.sleep(600)
|
142 |
@spaces.GPU(duration=70)
|
143 |
def plex(prompt,image_input,seed_value,scale_status,rife_status,progress=gr.Progress(track_tqdm=True)):
|
144 |
+
seed = seed_value
|
145 |
if seed == -1:
|
146 |
seed = random.randint(0, 2**8 - 1)
|
147 |
|