dmmmmm commited on
Commit
d53eb06
·
verified ·
1 Parent(s): 3d66d5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -19
app.py CHANGED
@@ -1,16 +1,3 @@
1
- """
2
- Veo3 AI Video Generator - 主应用文件
3
- 重构后的模块化版本
4
- """
5
-
6
- import sys
7
- import os
8
- import socket
9
- import random
10
-
11
- # 添加src目录到Python路径
12
- sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))
13
-
14
  from src.ui import Veo3Interface
15
  from src.utils import start_cleanup_scheduler
16
 
@@ -22,7 +9,7 @@ def main():
22
  # 启动定时清理任务
23
  start_cleanup_scheduler()
24
  print("✅ Cleanup scheduler started")
25
-
26
  # 创建界面
27
  interface = Veo3Interface()
28
  interface.create_interface()
@@ -31,11 +18,7 @@ def main():
31
  # 启动应用
32
  print("🚀 Launching application...")
33
  try:
34
- interface.launch(
35
- share=True,
36
- server_name="0.0.0.0",
37
- server_port=7860
38
- )
39
  except Exception as e:
40
  print(f"❌ 启动失败: {e}")
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from src.ui import Veo3Interface
2
  from src.utils import start_cleanup_scheduler
3
 
 
9
  # 启动定时清理任务
10
  start_cleanup_scheduler()
11
  print("✅ Cleanup scheduler started")
12
+
13
  # 创建界面
14
  interface = Veo3Interface()
15
  interface.create_interface()
 
18
  # 启动应用
19
  print("🚀 Launching application...")
20
  try:
21
+ interface.launch()
 
 
 
 
22
  except Exception as e:
23
  print(f"❌ 启动失败: {e}")
24