Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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='
|
| 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)
|