aibmedia commited on
Commit
cd385f9
·
verified ·
1 Parent(s): 3bf758e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +11 -3
main.py CHANGED
@@ -4,10 +4,18 @@ from flask import Flask
4
  app = Flask(__name__)
5
 
6
  def run_command():
7
- return subprocess.Popen("bg ./mxbai-embed-large-v1-f16.llamafile --server --nobrowser &", shell=True, stdout=subprocess.PIPE).stdout.read()
 
 
 
 
 
 
8
 
9
  @app.route('/')
10
  def command_server():
11
- print(run_command())
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
+