mazpie commited on
Commit
09b3c6f
1 Parent(s): e3ab733

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -25,7 +25,7 @@ t2v_examples = [
25
  def do_nothing():
26
  return
27
 
28
- def videocrafter_demo(result_dir='./tmp/'):
29
  text2video = Text2Video(result_dir)
30
  # video2video = Video2Video(result_dir)
31
 
@@ -82,7 +82,6 @@ def videocrafter_demo(result_dir='./tmp/'):
82
 
83
  if __name__ == "__main__":
84
  result_dir = os.path.join('./', 'results')
85
- videocrafter_iface = videocrafter_demo(result_dir)
86
- videocrafter_iface.queue() # concurrency_count=1, max_size=10
87
- videocrafter_iface.launch()
88
- # videocrafter_iface.launch(server_name='0.0.0.0', server_port=80)
 
25
  def do_nothing():
26
  return
27
 
28
+ def demo(result_dir='./tmp/'):
29
  text2video = Text2Video(result_dir)
30
  # video2video = Video2Video(result_dir)
31
 
 
82
 
83
  if __name__ == "__main__":
84
  result_dir = os.path.join('./', 'results')
85
+ video_demo = demo(result_dir)
86
+ video_demo.queue()
87
+ video_demo.launch()