Spaces:
Build error
Build error
Update app.py
Browse files1233 unmodified lines78910111225 unmodified lines38394041424344import gradio as grimport osimport subprocess3 unmodified linesimport imageioimport cv2import numpy as npfrom first_order_model import load_checkpoints, make_animation# Define model download links25 unmodified lines"""Loads the pre-trained First Order Motion Model."""# Load the model checkpointprint("Loading First Order Motion Model...")generator, kp_detector = load_checkpoints(config_path='configs/vox-256.yaml',12343 unmodified lines8910111213141516171825 unmodified lines444546474849import sysimport gradio as grimport osimport subprocess3 unmodified linesimport imageioimport cv2import numpy as np# Ensure the path to the first-order-model directory is added to sys.pathsys.path.append('/path/to/first-order-model') # Replace with the actual path where FOMM is located# Now import the required functionsfrom first_order_model import load_checkpoints, make_animation# Define model download links25 unmodified lines"""Loads the pre-trained First Order Motion Model."""print("Loading First Order Motion Model...")generator, kp_detector = load_checkpoints(config_path='configs/vox-256.yaml',
app.py+6-1