chenjgtea commited on
Commit
2aa8287
1 Parent(s): d502aab

torch 打印

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. web/app.py +2 -6
README.md CHANGED
@@ -5,7 +5,7 @@ colorFrom: blue
5
  colorTo: purple
6
  sdk: gradio
7
  sdk_version: 4.41.0
8
- app_port: 8080
9
  app_file: web/app.py
10
  pinned: false
11
  ---
 
5
  colorTo: purple
6
  sdk: gradio
7
  sdk_version: 4.41.0
8
+ #app_port: 8080
9
  app_file: web/app.py
10
  pinned: false
11
  ---
web/app.py CHANGED
@@ -174,11 +174,7 @@ def main(args):
174
  logger.info("元素初始化完成,启动gradio服务=======")
175
 
176
  # 运行gradio服务
177
- demo.launch(
178
- server_name=args.server_name,
179
- server_port=args.server_port,
180
- inbrowser=True,
181
- show_api=False)
182
 
183
 
184
  '''
@@ -254,7 +250,7 @@ if __name__ == "__main__":
254
  parser.add_argument(
255
  "--server_name", type=str, default="0.0.0.0", help="server name"
256
  )
257
- parser.add_argument("--server_port", type=int, default=8080, help="server port")
258
  parser.add_argument(
259
  "--custom_path", type=str, default="D:\\chenjgspace\\ai-model\\chattts", help="custom model path"
260
  )
 
174
  logger.info("元素初始化完成,启动gradio服务=======")
175
 
176
  # 运行gradio服务
177
+ demo.launch()
 
 
 
 
178
 
179
 
180
  '''
 
250
  parser.add_argument(
251
  "--server_name", type=str, default="0.0.0.0", help="server name"
252
  )
253
+ parser.add_argument("--server_port", type=int, default=7860, help="server port")
254
  parser.add_argument(
255
  "--custom_path", type=str, default="D:\\chenjgspace\\ai-model\\chattts", help="custom model path"
256
  )