Spaces:
Running
Running
Commit
·
83d9fde
1
Parent(s):
db4e125
DB storage debug 1
Browse files
Functions/caption_editor_functions.py
CHANGED
|
@@ -4,7 +4,9 @@ from Functions.db_connection import default_app
|
|
| 4 |
|
| 5 |
def get_captions_by_video_id(video_id):
|
| 6 |
response = default_app.database().child("Captions").child(video_id).get().val()
|
|
|
|
| 7 |
captions = pd.DataFrame(response)
|
|
|
|
| 8 |
captions_edit = captions[['start_time', 'text', 'end_time']]
|
| 9 |
captions_edit.columns = ["Start", "Text", "End"]
|
| 10 |
return captions_edit, captions
|
|
|
|
| 4 |
|
| 5 |
def get_captions_by_video_id(video_id):
|
| 6 |
response = default_app.database().child("Captions").child(video_id).get().val()
|
| 7 |
+
print(response)
|
| 8 |
captions = pd.DataFrame(response)
|
| 9 |
+
print(captions)
|
| 10 |
captions_edit = captions[['start_time', 'text', 'end_time']]
|
| 11 |
captions_edit.columns = ["Start", "Text", "End"]
|
| 12 |
return captions_edit, captions
|