Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,15 @@
|
|
1 |
import os
|
2 |
-
|
|
|
|
|
|
|
3 |
os.system('git clone https://github.com/modelscope/mcp-central.git')
|
4 |
-
os.system('python -m playwright install --with-deps chromium')
|
5 |
os.chdir('mcp-central/examples/lite_research')
|
6 |
os.system('sh requirements.sh')
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import os
|
2 |
+
import sys
|
3 |
+
import shutil
|
4 |
+
os.system('curl -fsSL https://deb.nodesource.com/setup_20.x | bash -')
|
5 |
+
os.system('apt-get install -y nodejs')
|
6 |
os.system('git clone https://github.com/modelscope/mcp-central.git')
|
|
|
7 |
os.chdir('mcp-central/examples/lite_research')
|
8 |
os.system('sh requirements.sh')
|
9 |
+
|
10 |
+
shutil.move('app.py', 'run_app.py')
|
11 |
+
sys.path.insert(0, '.')
|
12 |
+
from run_app import start
|
13 |
+
|
14 |
+
if __name__ == "__main__":
|
15 |
+
start()
|