Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -4,10 +4,18 @@ from flask import Flask
|
|
4 |
app = Flask(__name__)
|
5 |
|
6 |
def run_command():
|
7 |
-
return subprocess.Popen("
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
@app.route('/')
|
10 |
def command_server():
|
11 |
-
|
12 |
print("command run")
|
13 |
-
return "hi"
|
|
|
|
|
|
4 |
app = Flask(__name__)
|
5 |
|
6 |
def run_command():
|
7 |
+
return subprocess.Popen("./mxbai-embed-large-v1-f16.llamafile --server --nobrowser", shell=True, stdout=subprocess.PIPE).stdout.read()
|
8 |
+
|
9 |
+
@app.route('/app')
|
10 |
+
def command_app():
|
11 |
+
print(run_command())
|
12 |
+
print("command run")
|
13 |
+
return "hi"
|
14 |
|
15 |
@app.route('/')
|
16 |
def command_server():
|
17 |
+
|
18 |
print("command run")
|
19 |
+
return "hi"
|
20 |
+
|
21 |
+
|