PierreBrunelle
commited on
Commit
•
a77c3ea
1
Parent(s):
cc2f512
Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ def process_and_generate_post(video_file, social_media_type):
|
|
89 |
thumbnails = frames_view.select(frames_view.frame).tail(6)['frame']
|
90 |
|
91 |
# Retrieve Pixeltable Table containing all videos and stored data
|
92 |
-
df_output = t.collect().to_pandas()
|
93 |
|
94 |
#Display content
|
95 |
return social_media_post, thumbnails, df_output, audio
|
@@ -155,7 +155,7 @@ def gradio_interface():
|
|
155 |
)
|
156 |
audio = gr.Audio(label="Extracted audio", show_download_button=True)
|
157 |
|
158 |
-
df_output = gr.DataFrame(label="
|
159 |
|
160 |
generate_btn.click(
|
161 |
fn=process_and_generate_post,
|
|
|
89 |
thumbnails = frames_view.select(frames_view.frame).tail(6)['frame']
|
90 |
|
91 |
# Retrieve Pixeltable Table containing all videos and stored data
|
92 |
+
df_output = t.select(t.transcription_text).collect().to_pandas()
|
93 |
|
94 |
#Display content
|
95 |
return social_media_post, thumbnails, df_output, audio
|
|
|
155 |
)
|
156 |
audio = gr.Audio(label="Extracted audio", show_download_button=True)
|
157 |
|
158 |
+
df_output = gr.DataFrame(label="Transcription")
|
159 |
|
160 |
generate_btn.click(
|
161 |
fn=process_and_generate_post,
|