kadirnar commited on
Commit
7eadeda
·
verified ·
1 Parent(s): 251c58c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,7 +46,7 @@ def run_inference(model_name, prompt_text):
46
  "--ckpt-path", ckpt_path
47
  ]
48
  result = subprocess.run(cmd, capture_output=True, text=True)
49
-
50
  # Clean up the temporary files
51
  os.remove(temp_file.name)
52
  os.remove(prompt_file.name)
@@ -70,7 +70,7 @@ def main():
70
  ], label="Model Selection"),
71
  gr.Textbox(label="Prompt Text", placeholder="Enter prompt text here")
72
  ],
73
- outputs=gr.Video(type="filepath", label="Output Video"),
74
  title="Open-Sora Inference",
75
  description="Run Open-Sora Inference with Custom Parameters",
76
  ).launch()
 
46
  "--ckpt-path", ckpt_path
47
  ]
48
  result = subprocess.run(cmd, capture_output=True, text=True)
49
+ print("result", result)
50
  # Clean up the temporary files
51
  os.remove(temp_file.name)
52
  os.remove(prompt_file.name)
 
70
  ], label="Model Selection"),
71
  gr.Textbox(label="Prompt Text", placeholder="Enter prompt text here")
72
  ],
73
+ outputs=gr.Video(label="Output Video"),
74
  title="Open-Sora Inference",
75
  description="Run Open-Sora Inference with Custom Parameters",
76
  ).launch()