Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ except ImportError:
|
|
20 |
# 全局变量
|
21 |
analyzer = None
|
22 |
video_file_path = None
|
23 |
-
model_file_path = "
|
24 |
total_frames = 0
|
25 |
output_path = None
|
26 |
|
@@ -324,4 +324,4 @@ if __name__ == "__main__":
|
|
324 |
app.launch()
|
325 |
else:
|
326 |
# 本地环境的启动方式
|
327 |
-
app.launch(server_name="
|
|
|
20 |
# 全局变量
|
21 |
analyzer = None
|
22 |
video_file_path = None
|
23 |
+
model_file_path = "./fst-v1.2-n.onnx" # 直接指定模型文件路径
|
24 |
total_frames = 0
|
25 |
output_path = None
|
26 |
|
|
|
324 |
app.launch()
|
325 |
else:
|
326 |
# 本地环境的启动方式
|
327 |
+
app.launch(server_name="0.0.0.0", server_port=7860, share=False)
|