Update Gpt4oDemo.py
Browse files- Gpt4oDemo.py +29 -28
Gpt4oDemo.py
CHANGED
@@ -72,34 +72,35 @@ Video
|
|
72 |
video_file = None
|
73 |
audio_path=None
|
74 |
base64Frames = []
|
75 |
-
transcript='''Dialogue: and let's say you say well first this big guy came and got us out of class to learn how to tell stories and we were sitting in the classroom.
|
76 |
-
start: 0
|
77 |
-
end: 8
|
78 |
-
|
79 |
-
Dialogue: I was sitting in the classroom with Jared, Jared, and Jacob when all of a sudden, it's about those words, all of a sudden a grizzly bear walked through the door.
|
80 |
-
start: 9
|
81 |
-
end: 20
|
82 |
-
|
83 |
-
Dialogue: Would that be a problem?
|
84 |
-
start: 22
|
85 |
-
end: 23
|
86 |
-
|
87 |
-
Dialogue: Yeah.
|
88 |
-
start: 23
|
89 |
-
end: 25
|
90 |
-
|
91 |
-
Dialogue: Okay.
|
92 |
-
start: 25
|
93 |
-
end: 26
|
94 |
-
|
95 |
-
Dialogue: Would that be our
|
96 |
-
start: 26
|
97 |
-
end: 27
|
98 |
-
|
99 |
-
Dialogue: Yeah, so what's our takeoff in that story?
|
100 |
-
start: 28
|
101 |
-
end: 30
|
102 |
-
'''
|
|
|
103 |
|
104 |
def process_video(video_path, seconds_per_frame=2):
|
105 |
global base64Frames, audio_path
|
|
|
72 |
video_file = None
|
73 |
audio_path=None
|
74 |
base64Frames = []
|
75 |
+
# transcript='''Dialogue: and let's say you say well first this big guy came and got us out of class to learn how to tell stories and we were sitting in the classroom.
|
76 |
+
# start: 0
|
77 |
+
# end: 8
|
78 |
+
|
79 |
+
# Dialogue: I was sitting in the classroom with Jared, Jared, and Jacob when all of a sudden, it's about those words, all of a sudden a grizzly bear walked through the door.
|
80 |
+
# start: 9
|
81 |
+
# end: 20
|
82 |
+
|
83 |
+
# Dialogue: Would that be a problem?
|
84 |
+
# start: 22
|
85 |
+
# end: 23
|
86 |
+
|
87 |
+
# Dialogue: Yeah.
|
88 |
+
# start: 23
|
89 |
+
# end: 25
|
90 |
+
|
91 |
+
# Dialogue: Okay.
|
92 |
+
# start: 25
|
93 |
+
# end: 26
|
94 |
+
|
95 |
+
# Dialogue: Would that be our
|
96 |
+
# start: 26
|
97 |
+
# end: 27
|
98 |
+
|
99 |
+
# Dialogue: Yeah, so what's our takeoff in that story?
|
100 |
+
# start: 28
|
101 |
+
# end: 30
|
102 |
+
# '''
|
103 |
+
transcript=""
|
104 |
|
105 |
def process_video(video_path, seconds_per_frame=2):
|
106 |
global base64Frames, audio_path
|