-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun.py
More file actions
22 lines (17 loc) · 683 Bytes
/
run.py
File metadata and controls
22 lines (17 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import multiprocessing as mp
from app import create_app
from flask_cors import CORS
import os
import time
PORT = "http://127.0.0.1:5000/"
if __name__ == "__main__":
transcripts = mp.Queue()
curr_state = ["", "", ""] # One for each task (summary, actionables, agenda)
openai_key = "" # Can either enter at start or enter in plugin!
lst = time.time()
app = create_app(transcripts, curr_state, openai_key, lst)
CORS(app)
print("PID:", os.getpid())
print("Werkzeug subprocess:", os.environ.get("WERKZEUG_RUN_MAIN"))
print("Inherited FD:", os.environ.get("WERKZEUG_SERVER_FD"))
app.run(host="127.0.0.1", port=5000)