Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -4,7 +4,7 @@ from flask import Flask
|
|
4 |
app = Flask(__name__)
|
5 |
|
6 |
def run_command():
|
7 |
-
return subprocess.Popen("./mxbai-embed-large-v1-f16.llamafile --server --nobrowser", shell=
|
8 |
|
9 |
@app.route('/app')
|
10 |
def command_app():
|
|
|
4 |
app = Flask(__name__)
|
5 |
|
6 |
def run_command():
|
7 |
+
return subprocess.Popen("./mxbai-embed-large-v1-f16.llamafile --server --nobrowser", shell=False, stdout=subprocess.PIPE).stdout.read()
|
8 |
|
9 |
@app.route('/app')
|
10 |
def command_app():
|