Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,20 @@ import gradio as gr
|
|
2 |
import subprocess
|
3 |
import os
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
def process_video(video_path, prompt):
|
6 |
|
7 |
output_folder="noise_warp_output_folder"
|
|
|
2 |
import subprocess
|
3 |
import os
|
4 |
|
5 |
+
from huggingface_hub import snapshot_download
|
6 |
+
|
7 |
+
# Define the folder name
|
8 |
+
folder_name = "lora_models"
|
9 |
+
|
10 |
+
# Create the folder
|
11 |
+
os.makedirs(folder_name, exist_ok=True)
|
12 |
+
|
13 |
+
# Download models
|
14 |
+
snapshot_download(
|
15 |
+
repo_id = "Eyeline-Research/Go-with-the-Flow",
|
16 |
+
local_dir = folder_name
|
17 |
+
)
|
18 |
+
|
19 |
def process_video(video_path, prompt):
|
20 |
|
21 |
output_folder="noise_warp_output_folder"
|