rajiv-ramteke commited on
Commit
aaf2943
·
1 Parent(s): 4f86703

Deploy to HF without png

Browse files
Dockerfile CHANGED
@@ -26,14 +26,11 @@ RUN mkdir -p data/videos data/audio data/transcripts \
26
  outputs/final_notes outputs/timestamps \
27
  outputs/action_items outputs/reports \
28
  frontend/static/uploads \
29
- models/whisper models/summarization_model models/embedding_model
 
30
 
31
  # Expose port
32
  EXPOSE 7860
33
 
34
- # Health check
35
- HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
36
- CMD curl -f http://localhost:7860/health || exit 1
37
-
38
  # Run the application
39
  CMD ["python", "main.py"]
 
26
  outputs/final_notes outputs/timestamps \
27
  outputs/action_items outputs/reports \
28
  frontend/static/uploads \
29
+ models/whisper models/summarization_model models/embedding_model logs \
30
+ && chmod -R 777 /app
31
 
32
  # Expose port
33
  EXPOSE 7860
34
 
 
 
 
 
35
  # Run the application
36
  CMD ["python", "main.py"]
data/embeddings/faiss_meta.json CHANGED
@@ -1,7 +1,7 @@
1
  [
2
  {
3
  "chunk_id": 0,
4
- "text": "Believe it or not, your body might actually benefit in some weird ways. Here are five surprising positives most people don't know. It helps your heart a little. Light to moderate beer drinkers have a slightly lower risk of heart attacks. That's because beer can improve blood flow and reduce clotting. Just don't overdo it. You'll probably sleep better. Beer has small amounts of magnesium, potassium, and even bee vitamins. Together these help your body relax and fall asleep easier. Your bones might get stronger. Beer contains dietary silicon, a mineral that helps build and maintain healthy bones. Stronger bones, less risk of fractures as you age. Your brain gets a mini boost. Some studies suggest moderate beer drinking can lower your risk of dementia. It's the antioxidant.",
5
  "start": 0.0,
6
  "end": 47.16,
7
  "start_ts": "00:00:00",
@@ -21,7 +21,8 @@
21
  11,
22
  12,
23
  13,
24
- 14
 
25
  ]
26
  }
27
  ]
 
1
  [
2
  {
3
  "chunk_id": 0,
4
+ "text": "Believe it or not, your body might actually benefit in some weird ways. Here are five surprising positives most people don't know. It helps your heart a little. Light to moderate beer drinkers have a slightly lower risk of heart attacks. That's because beer can improve blood flow and reduce clotting. Just don't overdo it. You'll probably sleep better. Beer has small amounts of magnesium, potassium, and even B vitamins. Together these help your body relax and fall asleep easier. Your bones might get stronger. Beer contains dietary silicon. A mineral that helps build and maintain healthy bones. Stronger bones, less risk of fractures as you age. Your brain gets a mini boost. Some studies suggest moderate beer drinking can lower your risk of dementia. It's the antioxidant.",
5
  "start": 0.0,
6
  "end": 47.16,
7
  "start_ts": "00:00:00",
 
21
  11,
22
  12,
23
  13,
24
+ 14,
25
+ 15
26
  ]
27
  }
28
  ]
data/transcripts/e78040cc-45e3-4173-b2ad-3376b128f13c.json ADDED
@@ -0,0 +1,807 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "text": "Believe it or not, your body might actually benefit in some weird ways. Here are five surprising positives most people don't know. It helps your heart a little. Light to moderate beer drinkers have a slightly lower risk of heart attacks. That's because beer can improve blood flow and reduce clotting. Just don't overdo it. You'll probably sleep better. Beer has small amounts of magnesium, potassium, and even B vitamins. Together these help your body relax and fall asleep easier. Your bones might get stronger. Beer contains dietary silicon. A mineral that helps build and maintain healthy bones. Stronger bones, less risk of fractures as you age. Your brain gets a mini boost. Some studies suggest moderate beer drinking can lower your risk of dementia. It's the antioxidant.",
3
+ "segments": [
4
+ {
5
+ "id": 0,
6
+ "start": 0.0,
7
+ "end": 4.0,
8
+ "start_ts": "00:00:00",
9
+ "end_ts": "00:00:04",
10
+ "text": "Believe it or not, your body might actually benefit in some weird ways.",
11
+ "words": [
12
+ {
13
+ "word": "Believe",
14
+ "start": 0.0,
15
+ "end": 0.36
16
+ },
17
+ {
18
+ "word": "it",
19
+ "start": 0.36,
20
+ "end": 0.54
21
+ },
22
+ {
23
+ "word": "or",
24
+ "start": 0.54,
25
+ "end": 0.72
26
+ },
27
+ {
28
+ "word": "not,",
29
+ "start": 0.72,
30
+ "end": 1.0
31
+ },
32
+ {
33
+ "word": "your",
34
+ "start": 1.18,
35
+ "end": 1.38
36
+ },
37
+ {
38
+ "word": "body",
39
+ "start": 1.38,
40
+ "end": 1.64
41
+ },
42
+ {
43
+ "word": "might",
44
+ "start": 1.64,
45
+ "end": 1.98
46
+ },
47
+ {
48
+ "word": "actually",
49
+ "start": 1.98,
50
+ "end": 2.3
51
+ },
52
+ {
53
+ "word": "benefit",
54
+ "start": 2.3,
55
+ "end": 2.7
56
+ },
57
+ {
58
+ "word": "in",
59
+ "start": 2.7,
60
+ "end": 3.02
61
+ },
62
+ {
63
+ "word": "some",
64
+ "start": 3.02,
65
+ "end": 3.28
66
+ },
67
+ {
68
+ "word": "weird",
69
+ "start": 3.28,
70
+ "end": 3.48
71
+ },
72
+ {
73
+ "word": "ways.",
74
+ "start": 3.48,
75
+ "end": 4.0
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ "id": 1,
81
+ "start": 4.26,
82
+ "end": 7.76,
83
+ "start_ts": "00:00:04",
84
+ "end_ts": "00:00:07",
85
+ "text": "Here are five surprising positives most people don't know.",
86
+ "words": [
87
+ {
88
+ "word": "Here",
89
+ "start": 4.26,
90
+ "end": 4.46
91
+ },
92
+ {
93
+ "word": "are",
94
+ "start": 4.46,
95
+ "end": 4.68
96
+ },
97
+ {
98
+ "word": "five",
99
+ "start": 4.68,
100
+ "end": 5.06
101
+ },
102
+ {
103
+ "word": "surprising",
104
+ "start": 5.06,
105
+ "end": 5.6
106
+ },
107
+ {
108
+ "word": "positives",
109
+ "start": 5.6,
110
+ "end": 6.22
111
+ },
112
+ {
113
+ "word": "most",
114
+ "start": 6.22,
115
+ "end": 6.72
116
+ },
117
+ {
118
+ "word": "people",
119
+ "start": 6.72,
120
+ "end": 7.08
121
+ },
122
+ {
123
+ "word": "don't",
124
+ "start": 7.08,
125
+ "end": 7.44
126
+ },
127
+ {
128
+ "word": "know.",
129
+ "start": 7.44,
130
+ "end": 7.76
131
+ }
132
+ ]
133
+ },
134
+ {
135
+ "id": 2,
136
+ "start": 8.0,
137
+ "end": 9.4,
138
+ "start_ts": "00:00:08",
139
+ "end_ts": "00:00:09",
140
+ "text": "It helps your heart a little.",
141
+ "words": [
142
+ {
143
+ "word": "It",
144
+ "start": 8.0,
145
+ "end": 8.2
146
+ },
147
+ {
148
+ "word": "helps",
149
+ "start": 8.2,
150
+ "end": 8.46
151
+ },
152
+ {
153
+ "word": "your",
154
+ "start": 8.46,
155
+ "end": 8.74
156
+ },
157
+ {
158
+ "word": "heart",
159
+ "start": 8.74,
160
+ "end": 9.0
161
+ },
162
+ {
163
+ "word": "a",
164
+ "start": 9.0,
165
+ "end": 9.18
166
+ },
167
+ {
168
+ "word": "little.",
169
+ "start": 9.18,
170
+ "end": 9.4
171
+ }
172
+ ]
173
+ },
174
+ {
175
+ "id": 3,
176
+ "start": 9.7,
177
+ "end": 13.42,
178
+ "start_ts": "00:00:09",
179
+ "end_ts": "00:00:13",
180
+ "text": "Light to moderate beer drinkers have a slightly lower risk of heart attacks.",
181
+ "words": [
182
+ {
183
+ "word": "Light",
184
+ "start": 9.7,
185
+ "end": 9.86
186
+ },
187
+ {
188
+ "word": "to",
189
+ "start": 9.86,
190
+ "end": 10.06
191
+ },
192
+ {
193
+ "word": "moderate",
194
+ "start": 10.06,
195
+ "end": 10.42
196
+ },
197
+ {
198
+ "word": "beer",
199
+ "start": 10.42,
200
+ "end": 10.82
201
+ },
202
+ {
203
+ "word": "drinkers",
204
+ "start": 10.82,
205
+ "end": 11.26
206
+ },
207
+ {
208
+ "word": "have",
209
+ "start": 11.26,
210
+ "end": 11.46
211
+ },
212
+ {
213
+ "word": "a",
214
+ "start": 11.46,
215
+ "end": 11.7
216
+ },
217
+ {
218
+ "word": "slightly",
219
+ "start": 11.7,
220
+ "end": 11.86
221
+ },
222
+ {
223
+ "word": "lower",
224
+ "start": 11.86,
225
+ "end": 12.24
226
+ },
227
+ {
228
+ "word": "risk",
229
+ "start": 12.24,
230
+ "end": 12.54
231
+ },
232
+ {
233
+ "word": "of",
234
+ "start": 12.54,
235
+ "end": 12.78
236
+ },
237
+ {
238
+ "word": "heart",
239
+ "start": 12.78,
240
+ "end": 12.94
241
+ },
242
+ {
243
+ "word": "attacks.",
244
+ "start": 12.94,
245
+ "end": 13.42
246
+ }
247
+ ]
248
+ },
249
+ {
250
+ "id": 4,
251
+ "start": 13.74,
252
+ "end": 16.8,
253
+ "start_ts": "00:00:13",
254
+ "end_ts": "00:00:16",
255
+ "text": "That's because beer can improve blood flow and reduce clotting.",
256
+ "words": [
257
+ {
258
+ "word": "That's",
259
+ "start": 13.74,
260
+ "end": 14.04
261
+ },
262
+ {
263
+ "word": "because",
264
+ "start": 14.04,
265
+ "end": 14.3
266
+ },
267
+ {
268
+ "word": "beer",
269
+ "start": 14.3,
270
+ "end": 14.54
271
+ },
272
+ {
273
+ "word": "can",
274
+ "start": 14.54,
275
+ "end": 14.78
276
+ },
277
+ {
278
+ "word": "improve",
279
+ "start": 14.78,
280
+ "end": 15.12
281
+ },
282
+ {
283
+ "word": "blood",
284
+ "start": 15.12,
285
+ "end": 15.44
286
+ },
287
+ {
288
+ "word": "flow",
289
+ "start": 15.44,
290
+ "end": 15.72
291
+ },
292
+ {
293
+ "word": "and",
294
+ "start": 15.72,
295
+ "end": 15.92
296
+ },
297
+ {
298
+ "word": "reduce",
299
+ "start": 15.92,
300
+ "end": 16.22
301
+ },
302
+ {
303
+ "word": "clotting.",
304
+ "start": 16.22,
305
+ "end": 16.8
306
+ }
307
+ ]
308
+ },
309
+ {
310
+ "id": 5,
311
+ "start": 17.06,
312
+ "end": 18.6,
313
+ "start_ts": "00:00:17",
314
+ "end_ts": "00:00:18",
315
+ "text": "Just don't overdo it.",
316
+ "words": [
317
+ {
318
+ "word": "Just",
319
+ "start": 17.06,
320
+ "end": 17.26
321
+ },
322
+ {
323
+ "word": "don't",
324
+ "start": 17.26,
325
+ "end": 17.84
326
+ },
327
+ {
328
+ "word": "overdo",
329
+ "start": 17.84,
330
+ "end": 18.16
331
+ },
332
+ {
333
+ "word": "it.",
334
+ "start": 18.16,
335
+ "end": 18.6
336
+ }
337
+ ]
338
+ },
339
+ {
340
+ "id": 6,
341
+ "start": 18.84,
342
+ "end": 20.06,
343
+ "start_ts": "00:00:18",
344
+ "end_ts": "00:00:20",
345
+ "text": "You'll probably sleep better.",
346
+ "words": [
347
+ {
348
+ "word": "You'll",
349
+ "start": 18.84,
350
+ "end": 19.02
351
+ },
352
+ {
353
+ "word": "probably",
354
+ "start": 19.02,
355
+ "end": 19.42
356
+ },
357
+ {
358
+ "word": "sleep",
359
+ "start": 19.42,
360
+ "end": 19.74
361
+ },
362
+ {
363
+ "word": "better.",
364
+ "start": 19.74,
365
+ "end": 20.06
366
+ }
367
+ ]
368
+ },
369
+ {
370
+ "id": 7,
371
+ "start": 20.38,
372
+ "end": 24.24,
373
+ "start_ts": "00:00:20",
374
+ "end_ts": "00:00:24",
375
+ "text": "Beer has small amounts of magnesium, potassium, and even B vitamins.",
376
+ "words": [
377
+ {
378
+ "word": "Beer",
379
+ "start": 20.38,
380
+ "end": 20.56
381
+ },
382
+ {
383
+ "word": "has",
384
+ "start": 20.56,
385
+ "end": 20.82
386
+ },
387
+ {
388
+ "word": "small",
389
+ "start": 20.82,
390
+ "end": 21.14
391
+ },
392
+ {
393
+ "word": "amounts",
394
+ "start": 21.14,
395
+ "end": 21.48
396
+ },
397
+ {
398
+ "word": "of",
399
+ "start": 21.48,
400
+ "end": 21.72
401
+ },
402
+ {
403
+ "word": "magnesium,",
404
+ "start": 21.72,
405
+ "end": 22.24
406
+ },
407
+ {
408
+ "word": "potassium,",
409
+ "start": 22.5,
410
+ "end": 22.88
411
+ },
412
+ {
413
+ "word": "and",
414
+ "start": 23.1,
415
+ "end": 23.26
416
+ },
417
+ {
418
+ "word": "even",
419
+ "start": 23.26,
420
+ "end": 23.54
421
+ },
422
+ {
423
+ "word": "B",
424
+ "start": 23.54,
425
+ "end": 23.74
426
+ },
427
+ {
428
+ "word": "vitamins.",
429
+ "start": 23.74,
430
+ "end": 24.24
431
+ }
432
+ ]
433
+ },
434
+ {
435
+ "id": 8,
436
+ "start": 24.84,
437
+ "end": 27.96,
438
+ "start_ts": "00:00:24",
439
+ "end_ts": "00:00:27",
440
+ "text": "Together these help your body relax and fall asleep easier.",
441
+ "words": [
442
+ {
443
+ "word": "Together",
444
+ "start": 24.84,
445
+ "end": 25.12
446
+ },
447
+ {
448
+ "word": "these",
449
+ "start": 25.12,
450
+ "end": 25.44
451
+ },
452
+ {
453
+ "word": "help",
454
+ "start": 25.44,
455
+ "end": 25.66
456
+ },
457
+ {
458
+ "word": "your",
459
+ "start": 25.66,
460
+ "end": 25.8
461
+ },
462
+ {
463
+ "word": "body",
464
+ "start": 25.8,
465
+ "end": 26.06
466
+ },
467
+ {
468
+ "word": "relax",
469
+ "start": 26.06,
470
+ "end": 26.54
471
+ },
472
+ {
473
+ "word": "and",
474
+ "start": 26.54,
475
+ "end": 26.86
476
+ },
477
+ {
478
+ "word": "fall",
479
+ "start": 26.86,
480
+ "end": 27.06
481
+ },
482
+ {
483
+ "word": "asleep",
484
+ "start": 27.06,
485
+ "end": 27.44
486
+ },
487
+ {
488
+ "word": "easier.",
489
+ "start": 27.44,
490
+ "end": 27.96
491
+ }
492
+ ]
493
+ },
494
+ {
495
+ "id": 9,
496
+ "start": 27.96,
497
+ "end": 29.88,
498
+ "start_ts": "00:00:27",
499
+ "end_ts": "00:00:29",
500
+ "text": "Your bones might get stronger.",
501
+ "words": [
502
+ {
503
+ "word": "Your",
504
+ "start": 27.96,
505
+ "end": 28.36
506
+ },
507
+ {
508
+ "word": "bones",
509
+ "start": 28.36,
510
+ "end": 28.78
511
+ },
512
+ {
513
+ "word": "might",
514
+ "start": 28.78,
515
+ "end": 29.12
516
+ },
517
+ {
518
+ "word": "get",
519
+ "start": 29.12,
520
+ "end": 29.42
521
+ },
522
+ {
523
+ "word": "stronger.",
524
+ "start": 29.42,
525
+ "end": 29.88
526
+ }
527
+ ]
528
+ },
529
+ {
530
+ "id": 10,
531
+ "start": 30.18,
532
+ "end": 32.16,
533
+ "start_ts": "00:00:30",
534
+ "end_ts": "00:00:32",
535
+ "text": "Beer contains dietary silicon.",
536
+ "words": [
537
+ {
538
+ "word": "Beer",
539
+ "start": 30.18,
540
+ "end": 30.42
541
+ },
542
+ {
543
+ "word": "contains",
544
+ "start": 30.42,
545
+ "end": 30.94
546
+ },
547
+ {
548
+ "word": "dietary",
549
+ "start": 30.94,
550
+ "end": 31.6
551
+ },
552
+ {
553
+ "word": "silicon.",
554
+ "start": 31.6,
555
+ "end": 32.16
556
+ }
557
+ ]
558
+ },
559
+ {
560
+ "id": 11,
561
+ "start": 32.68,
562
+ "end": 35.82,
563
+ "start_ts": "00:00:32",
564
+ "end_ts": "00:00:35",
565
+ "text": "A mineral that helps build and maintain healthy bones.",
566
+ "words": [
567
+ {
568
+ "word": "A",
569
+ "start": 32.68,
570
+ "end": 32.8
571
+ },
572
+ {
573
+ "word": "mineral",
574
+ "start": 32.8,
575
+ "end": 33.12
576
+ },
577
+ {
578
+ "word": "that",
579
+ "start": 33.12,
580
+ "end": 33.38
581
+ },
582
+ {
583
+ "word": "helps",
584
+ "start": 33.38,
585
+ "end": 33.58
586
+ },
587
+ {
588
+ "word": "build",
589
+ "start": 33.58,
590
+ "end": 34.04
591
+ },
592
+ {
593
+ "word": "and",
594
+ "start": 34.04,
595
+ "end": 34.28
596
+ },
597
+ {
598
+ "word": "maintain",
599
+ "start": 34.28,
600
+ "end": 34.78
601
+ },
602
+ {
603
+ "word": "healthy",
604
+ "start": 34.78,
605
+ "end": 35.24
606
+ },
607
+ {
608
+ "word": "bones.",
609
+ "start": 35.24,
610
+ "end": 35.82
611
+ }
612
+ ]
613
+ },
614
+ {
615
+ "id": 12,
616
+ "start": 36.38,
617
+ "end": 39.38,
618
+ "start_ts": "00:00:36",
619
+ "end_ts": "00:00:39",
620
+ "text": "Stronger bones, less risk of fractures as you age.",
621
+ "words": [
622
+ {
623
+ "word": "Stronger",
624
+ "start": 36.38,
625
+ "end": 36.8
626
+ },
627
+ {
628
+ "word": "bones,",
629
+ "start": 36.8,
630
+ "end": 37.2
631
+ },
632
+ {
633
+ "word": "less",
634
+ "start": 37.46,
635
+ "end": 37.62
636
+ },
637
+ {
638
+ "word": "risk",
639
+ "start": 37.62,
640
+ "end": 37.9
641
+ },
642
+ {
643
+ "word": "of",
644
+ "start": 37.9,
645
+ "end": 38.06
646
+ },
647
+ {
648
+ "word": "fractures",
649
+ "start": 38.06,
650
+ "end": 38.52
651
+ },
652
+ {
653
+ "word": "as",
654
+ "start": 38.52,
655
+ "end": 38.8
656
+ },
657
+ {
658
+ "word": "you",
659
+ "start": 38.8,
660
+ "end": 38.96
661
+ },
662
+ {
663
+ "word": "age.",
664
+ "start": 38.96,
665
+ "end": 39.38
666
+ }
667
+ ]
668
+ },
669
+ {
670
+ "id": 13,
671
+ "start": 39.62,
672
+ "end": 41.04,
673
+ "start_ts": "00:00:39",
674
+ "end_ts": "00:00:41",
675
+ "text": "Your brain gets a mini boost.",
676
+ "words": [
677
+ {
678
+ "word": "Your",
679
+ "start": 39.62,
680
+ "end": 39.82
681
+ },
682
+ {
683
+ "word": "brain",
684
+ "start": 39.82,
685
+ "end": 40.08
686
+ },
687
+ {
688
+ "word": "gets",
689
+ "start": 40.08,
690
+ "end": 40.34
691
+ },
692
+ {
693
+ "word": "a",
694
+ "start": 40.34,
695
+ "end": 40.5
696
+ },
697
+ {
698
+ "word": "mini",
699
+ "start": 40.5,
700
+ "end": 40.68
701
+ },
702
+ {
703
+ "word": "boost.",
704
+ "start": 40.68,
705
+ "end": 41.04
706
+ }
707
+ ]
708
+ },
709
+ {
710
+ "id": 14,
711
+ "start": 41.54,
712
+ "end": 45.42,
713
+ "start_ts": "00:00:41",
714
+ "end_ts": "00:00:45",
715
+ "text": "Some studies suggest moderate beer drinking can lower your risk of dementia.",
716
+ "words": [
717
+ {
718
+ "word": "Some",
719
+ "start": 41.54,
720
+ "end": 41.78
721
+ },
722
+ {
723
+ "word": "studies",
724
+ "start": 41.78,
725
+ "end": 42.08
726
+ },
727
+ {
728
+ "word": "suggest",
729
+ "start": 42.08,
730
+ "end": 42.66
731
+ },
732
+ {
733
+ "word": "moderate",
734
+ "start": 42.66,
735
+ "end": 43.08
736
+ },
737
+ {
738
+ "word": "beer",
739
+ "start": 43.08,
740
+ "end": 43.4
741
+ },
742
+ {
743
+ "word": "drinking",
744
+ "start": 43.4,
745
+ "end": 43.72
746
+ },
747
+ {
748
+ "word": "can",
749
+ "start": 43.72,
750
+ "end": 44.04
751
+ },
752
+ {
753
+ "word": "lower",
754
+ "start": 44.04,
755
+ "end": 44.3
756
+ },
757
+ {
758
+ "word": "your",
759
+ "start": 44.3,
760
+ "end": 44.64
761
+ },
762
+ {
763
+ "word": "risk",
764
+ "start": 44.64,
765
+ "end": 44.86
766
+ },
767
+ {
768
+ "word": "of",
769
+ "start": 44.86,
770
+ "end": 45.08
771
+ },
772
+ {
773
+ "word": "dementia.",
774
+ "start": 45.08,
775
+ "end": 45.42
776
+ }
777
+ ]
778
+ },
779
+ {
780
+ "id": 15,
781
+ "start": 45.9,
782
+ "end": 47.16,
783
+ "start_ts": "00:00:45",
784
+ "end_ts": "00:00:47",
785
+ "text": "It's the antioxidant.",
786
+ "words": [
787
+ {
788
+ "word": "It's",
789
+ "start": 45.9,
790
+ "end": 46.22
791
+ },
792
+ {
793
+ "word": "the",
794
+ "start": 46.22,
795
+ "end": 46.4
796
+ },
797
+ {
798
+ "word": "antioxidant.",
799
+ "start": 46.4,
800
+ "end": 47.16
801
+ }
802
+ ]
803
+ }
804
+ ],
805
+ "language": "en",
806
+ "duration": 47.1829375
807
+ }
main.py CHANGED
@@ -22,10 +22,13 @@ if __name__ == "__main__":
22
  logger.info(f" ASR : Whisper ({settings.WHISPER_MODEL})")
23
  logger.info("=" * 60)
24
 
 
 
 
25
  uvicorn.run(
26
  "app:app",
27
  host=settings.APP_HOST,
28
  port=settings.APP_PORT,
29
- reload=settings.DEBUG,
30
  log_level="info",
31
  )
 
22
  logger.info(f" ASR : Whisper ({settings.WHISPER_MODEL})")
23
  logger.info("=" * 60)
24
 
25
+ import os
26
+ reload_mode = settings.DEBUG and not os.environ.get("SPACE_ID")
27
+
28
  uvicorn.run(
29
  "app:app",
30
  host=settings.APP_HOST,
31
  port=settings.APP_PORT,
32
+ reload=reload_mode,
33
  log_level="info",
34
  )
start.bat CHANGED
@@ -62,7 +62,7 @@ if not exist "models\whisper" mkdir models\whisper
62
  if not exist "models\embedding_model" mkdir models\embedding_model
63
 
64
  echo.
65
- echo [START] Launching server at http://localhost:8000
66
  echo Press Ctrl+C to stop.
67
  echo.
68
 
 
62
  if not exist "models\embedding_model" mkdir models\embedding_model
63
 
64
  echo.
65
+ echo [START] Launching server at http://localhost:7860
66
  echo Press Ctrl+C to stop.
67
  echo.
68
 
vercel.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 2,
3
+ "builds": [
4
+ {
5
+ "src": "app.py",
6
+ "use": "@vercel/python"
7
+ }
8
+ ],
9
+ "routes": [
10
+ {
11
+ "src": "/(.*)",
12
+ "dest": "app.py"
13
+ }
14
+ ]
15
+ }