leagend commited on
Commit
64c7fd4
·
verified ·
1 Parent(s): 3285df8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ SEARCHER_HISTORY = []
10
  import subprocess
11
 
12
  # 定义要执行的命令行命令
13
- command = "python -m mindsearch.app --lang cn --model_format internlm_silicon --search_engine DuckDuckGoSearch &" # 将 "your_command" 替换为你要执行的命令
14
 
15
  # 使用subprocess.Popen来启动命令并将其放在后台
16
  process = subprocess.Popen(command, shell=True)
@@ -145,7 +145,7 @@ with gr.Blocks() as demo:
145
  queue=False)
146
 
147
  demo.queue()
148
- demo.launch(server_name='127.0.0.1',
149
  server_port=7860,
150
  inbrowser=True,
151
  share=True)
 
10
  import subprocess
11
 
12
  # 定义要执行的命令行命令
13
+ command = "python -m mindsearch.app --lang cn --model_format internlm_silicon &" # 将 "your_command" 替换为你要执行的命令
14
 
15
  # 使用subprocess.Popen来启动命令并将其放在后台
16
  process = subprocess.Popen(command, shell=True)
 
145
  queue=False)
146
 
147
  demo.queue()
148
+ demo.launch(server_name='0.0.0.0',
149
  server_port=7860,
150
  inbrowser=True,
151
  share=True)