AItool commited on
Commit
1245c6a
·
verified ·
1 Parent(s): 4cf7af9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -14,9 +14,11 @@ def generate_demo_gif(img1, img2):
14
 
15
  try:
16
  result = subprocess.run([
17
- "3python", "inference_img.py",
18
  "--img", str(frame1_path), str(frame2_path),
19
- "--exp=4"
 
 
20
  ], capture_output=True, text=True)
21
 
22
  print("STDOUT:", result.stdout)
@@ -28,7 +30,7 @@ def generate_demo_gif(img1, img2):
28
  return "GIF generation failed."
29
  except Exception as e:
30
  print(f"Error: {e}")
31
- return "Error during GIF generation."
32
 
33
  with gr.Blocks() as demo_ui:
34
  with gr.Tab("Demo"):
 
14
 
15
  try:
16
  result = subprocess.run([
17
+ "python", "inference_img.py",
18
  "--img", str(frame1_path), str(frame2_path),
19
+ "--exp=4",
20
+ "--model='train_log/",
21
+
22
  ], capture_output=True, text=True)
23
 
24
  print("STDOUT:", result.stdout)
 
30
  return "GIF generation failed."
31
  except Exception as e:
32
  print(f"Error: {e}")
33
+ return "No subprocss. Error during GIF generation."
34
 
35
  with gr.Blocks() as demo_ui:
36
  with gr.Tab("Demo"):