Update app.py
Browse files
app.py
CHANGED
@@ -224,13 +224,17 @@ def gradio_interface():
|
|
224 |
"""<center>Pixeltable is a Python library providing a declarative interface for multimodal data (text, images, audio, video). It features built-in versioning, lineage tracking, and incremental updates, enabling users to store, transform, index, and iterate on data for their ML workflows. Data transformations, model inference, and custom logic are embedded as computed columns.
|
225 |
</center>"""
|
226 |
)
|
227 |
-
video_input = gr.Video(label=f"Upload Video File (max {MAX_VIDEO_SIZE_MB} MB):"
|
|
|
|
|
228 |
social_media_type = gr.Dropdown(
|
229 |
choices=["X (Twitter)", "Facebook", "LinkedIn"],
|
230 |
label="Select Social Media Platform:",
|
231 |
value="X (Twitter)",
|
232 |
)
|
233 |
-
generate_btn = gr.Button("Generate Post")
|
|
|
|
|
234 |
|
235 |
output = gr.Textbox(label="Generated Social Media Post", show_copy_button=True)
|
236 |
|
|
|
224 |
"""<center>Pixeltable is a Python library providing a declarative interface for multimodal data (text, images, audio, video). It features built-in versioning, lineage tracking, and incremental updates, enabling users to store, transform, index, and iterate on data for their ML workflows. Data transformations, model inference, and custom logic are embedded as computed columns.
|
225 |
</center>"""
|
226 |
)
|
227 |
+
video_input = gr.Video(label=f"Upload Video File (max {MAX_VIDEO_SIZE_MB} MB):",
|
228 |
+
include_audio = True,
|
229 |
+
max_length= 300)
|
230 |
social_media_type = gr.Dropdown(
|
231 |
choices=["X (Twitter)", "Facebook", "LinkedIn"],
|
232 |
label="Select Social Media Platform:",
|
233 |
value="X (Twitter)",
|
234 |
)
|
235 |
+
generate_btn = gr.Button("Generate Post", interactive= True)
|
236 |
+
|
237 |
+
#video_input.upload(lambda : gr.Button(interactive=True), None, generate_btn)
|
238 |
|
239 |
output = gr.Textbox(label="Generated Social Media Post", show_copy_button=True)
|
240 |
|