Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import time
|
|
| 6 |
from datetime import datetime, timedelta
|
| 7 |
|
| 8 |
import gradio as gr
|
| 9 |
-
import spaces
|
| 10 |
import torch
|
| 11 |
from huggingface_hub import hf_hub_download, snapshot_download
|
| 12 |
from models.consisid_utils import prepare_face_models, process_face_embeddings_infer
|
|
@@ -64,7 +64,7 @@ os.makedirs("./gradio_tmp", exist_ok=True)
|
|
| 64 |
upscale_model = load_sd_upscale(f"{model_path}/model_real_esran/RealESRGAN_x4.pth", device)
|
| 65 |
frame_interpolation_model = load_rife_model(f"{model_path}/model_rife")
|
| 66 |
|
| 67 |
-
@spaces.GPU(duration=180)
|
| 68 |
def generate(
|
| 69 |
prompt: str,
|
| 70 |
image_input: str,
|
|
|
|
| 6 |
from datetime import datetime, timedelta
|
| 7 |
|
| 8 |
import gradio as gr
|
| 9 |
+
# import spaces
|
| 10 |
import torch
|
| 11 |
from huggingface_hub import hf_hub_download, snapshot_download
|
| 12 |
from models.consisid_utils import prepare_face_models, process_face_embeddings_infer
|
|
|
|
| 64 |
upscale_model = load_sd_upscale(f"{model_path}/model_real_esran/RealESRGAN_x4.pth", device)
|
| 65 |
frame_interpolation_model = load_rife_model(f"{model_path}/model_rife")
|
| 66 |
|
| 67 |
+
# @spaces.GPU(duration=180)
|
| 68 |
def generate(
|
| 69 |
prompt: str,
|
| 70 |
image_input: str,
|