github-actions[bot]
commited on
Commit
Β·
d44c543
1
Parent(s):
cc13016
Auto-deploy from GitHub: 49e547d9fc3776bc957d595366f1be35c40696d2
Browse files- app.py +1 -1
- index.html +1 -2
app.py
CHANGED
|
@@ -118,7 +118,7 @@ def worker_loop():
|
|
| 118 |
print(f"π Caption preview: {caption[:100]}...")
|
| 119 |
|
| 120 |
# Update database with success
|
| 121 |
-
update_status(file_id, 'completed', caption=
|
| 122 |
|
| 123 |
# Delete the audio file after successful processing
|
| 124 |
if os.path.exists(filepath):
|
|
|
|
| 118 |
print(f"π Caption preview: {caption[:100]}...")
|
| 119 |
|
| 120 |
# Update database with success
|
| 121 |
+
update_status(file_id, 'completed', caption=json.dumps(result))
|
| 122 |
|
| 123 |
# Delete the audio file after successful processing
|
| 124 |
if os.path.exists(filepath):
|
index.html
CHANGED
|
@@ -723,8 +723,7 @@
|
|
| 723 |
<td><span class="status status-${file.status}">${file.status.replace('_', ' ')}</span></td>
|
| 724 |
<td class="caption-cell">
|
| 725 |
${file.caption ?
|
| 726 |
-
`<
|
| 727 |
-
<button class="btn btn-small btn-secondary" onclick='showCaption(${JSON.stringify(file.caption)})' style="margin-left: 0.5rem;">Show</button>`
|
| 728 |
: 'β'}
|
| 729 |
</td>
|
| 730 |
<td>${new Date(file.created_at).toLocaleString()}</td>
|
|
|
|
| 723 |
<td><span class="status status-${file.status}">${file.status.replace('_', ' ')}</span></td>
|
| 724 |
<td class="caption-cell">
|
| 725 |
${file.caption ?
|
| 726 |
+
`<button class="btn btn-small btn-secondary" onclick='showCaption(${JSON.stringify(file.caption)})' style="margin-left: 0.5rem;">Show</button>`
|
|
|
|
| 727 |
: 'β'}
|
| 728 |
</td>
|
| 729 |
<td>${new Date(file.created_at).toLocaleString()}</td>
|