fffiloni commited on
Commit
748cb22
1 Parent(s): 563bf9d

Update app_gradio.py

Browse files
Files changed (1) hide show
  1. app_gradio.py +4 -31
app_gradio.py CHANGED
@@ -35,33 +35,6 @@ snapshot_download(
35
  local_dir="./t2v_sketch-lora"
36
  )
37
 
38
- """
39
- def run_setup():
40
- try:
41
- # Step 1: Install Git LFS
42
- subprocess.run(["git", "lfs", "install"], check=True)
43
-
44
- # Step 2: Clone the repository
45
- repo_url = "https://huggingface.co/Hmrishav/t2v_sketch-lora"
46
- subprocess.run(["git", "clone", repo_url], check=True)
47
-
48
- # Step 3: Move the checkpoint file
49
- source = "t2v_sketch-lora/checkpoint-2500"
50
- destination = "./checkpoint-2500/"
51
- os.rename(source, destination)
52
-
53
- print("Setup completed successfully!")
54
- except subprocess.CalledProcessError as e:
55
- print(f"Error during setup: {e}")
56
- except FileNotFoundError as e:
57
- print(f"File operation error: {e}")
58
- except Exception as e:
59
- print(f"Unexpected error: {e}")
60
-
61
- # Automatically run setup during app initialization
62
- run_setup()
63
- """
64
-
65
  def save_gif(frames, path):
66
  imageio.mimsave(
67
  path,
@@ -245,7 +218,7 @@ with gr.Blocks(css=css) as demo:
245
  motion_prompt = gr.Textbox(
246
  label="Prompt",
247
  placeholder="Describe the motion...",
248
- lines=3
249
  )
250
 
251
 
@@ -312,7 +285,7 @@ with gr.Blocks(css=css) as demo:
312
  draw_motion_prompt = gr.Textbox(
313
  label="Prompt",
314
  placeholder="Describe the motion...",
315
- lines=3
316
  )
317
 
318
 
@@ -329,8 +302,8 @@ with gr.Blocks(css=css) as demo:
329
  value=0.5,
330
  step=0.1,
331
  label="Motion Strength"
332
- )
333
-
334
  sketchpad_generate_btn = gr.Button(
335
  "Generate Animation",
336
  variant="primary",
 
35
  local_dir="./t2v_sketch-lora"
36
  )
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  def save_gif(frames, path):
39
  imageio.mimsave(
40
  path,
 
218
  motion_prompt = gr.Textbox(
219
  label="Prompt",
220
  placeholder="Describe the motion...",
221
+ lines=2
222
  )
223
 
224
 
 
285
  draw_motion_prompt = gr.Textbox(
286
  label="Prompt",
287
  placeholder="Describe the motion...",
288
+ lines=2
289
  )
290
 
291
 
 
302
  value=0.5,
303
  step=0.1,
304
  label="Motion Strength"
305
+ )
306
+
307
  sketchpad_generate_btn = gr.Button(
308
  "Generate Animation",
309
  variant="primary",