We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 229947c + d3ca385 commit b03b719Copy full SHA for b03b719
main.py
@@ -23,6 +23,8 @@ def get_db_connection():
23
return conn
24
25
def init_db():
26
+ conn = get_db_connection()
27
+ c = conn.cursor()
28
conn = get_db_connection()
29
c = conn.cursor()
30
@@ -48,6 +50,7 @@ def init_db():
48
50
def process_job(job_id):
49
51
# Create app context for the thread
52
with app.app_context():
53
54
55
56
@@ -165,6 +168,7 @@ def start_transcription():
165
168
166
169
@app.route("/status/<job_id>", methods=["GET"])
167
170
def get_job_status(job_id):
171
172
173
174
0 commit comments