Update app.py
Browse files
app.py
CHANGED
@@ -109,8 +109,6 @@ def process_and_generate_post(video_file, social_media_type, progress=gr.Progres
|
|
109 |
return f"An error occurred: {str(e)}", None
|
110 |
|
111 |
# Gradio Interface
|
112 |
-
import gradio as gr
|
113 |
-
|
114 |
def gradio_interface():
|
115 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
116 |
# Header Section with Logo and Title
|
@@ -254,19 +252,17 @@ def gradio_interface():
|
|
254 |
)
|
255 |
|
256 |
# Example Section
|
257 |
-
gr.Markdown("### 📚
|
258 |
with gr.Row():
|
259 |
gr.Examples(
|
260 |
examples=[
|
261 |
-
["
|
262 |
-
["
|
263 |
-
["
|
264 |
],
|
265 |
-
inputs=[video_input],
|
266 |
-
|
267 |
-
|
268 |
-
cache_examples=True,
|
269 |
-
label="Try these samples to see how it works"
|
270 |
)
|
271 |
|
272 |
# Footer
|
|
|
109 |
return f"An error occurred: {str(e)}", None
|
110 |
|
111 |
# Gradio Interface
|
|
|
|
|
112 |
def gradio_interface():
|
113 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
114 |
# Header Section with Logo and Title
|
|
|
252 |
)
|
253 |
|
254 |
# Example Section
|
255 |
+
gr.Markdown("### 📚 Sample Usage")
|
256 |
with gr.Row():
|
257 |
gr.Examples(
|
258 |
examples=[
|
259 |
+
["sample1.mp4", "X (Twitter)"],
|
260 |
+
["sample2.mp4", "LinkedIn"],
|
261 |
+
["sample3.mp4", "Instagram"]
|
262 |
],
|
263 |
+
inputs=[video_input, social_media_type],
|
264 |
+
label="Try with sample videos:",
|
265 |
+
examples_per_page=5
|
|
|
|
|
266 |
)
|
267 |
|
268 |
# Footer
|