PierreBrunelle
commited on
Commit
•
8285890
1
Parent(s):
5746517
Update app.py
Browse files
app.py
CHANGED
@@ -102,19 +102,34 @@ import gradio as gr
|
|
102 |
|
103 |
def gradio_interface():
|
104 |
with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
|
105 |
-
gr.Markdown(
|
106 |
-
"""
|
107 |
-
<img src="https://raw.githubusercontent.com/pixeltable/pixeltable/main/docs/source/data/pixeltable-logo-large.png" alt="Pixeltable" width="20%" />
|
108 |
<h1>Video to Social Media Post Generator</h1>
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
"""
|
119 |
)
|
120 |
|
@@ -160,10 +175,8 @@ def gradio_interface():
|
|
160 |
|
161 |
gr.HTML(
|
162 |
"""
|
163 |
-
<div class="footer">
|
164 |
<p>Pixeltable is a declarative interface for working with text, images, embeddings, and even video, enabling you to store, transform, index, and iterate on data. Powered solely by <a href="https://github.com/pixeltable/pixeltable" style="text-decoration: underline;" target="_blank">Pixeltable</a> - running OpenAI (gpt-4o-mini-2024-07-18).</a></p>
|
165 |
<p><a href="https://colab.research.google.com/github/pixeltable/pixeltable/blob/release/docs/release/tutorials/pixeltable-basics.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Colab"></a></p>
|
166 |
-
</div>
|
167 |
"""
|
168 |
)
|
169 |
return demo
|
|
|
102 |
|
103 |
def gradio_interface():
|
104 |
with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
|
105 |
+
gr.Markdown("""
|
106 |
+
<img src="https://raw.githubusercontent.com/pixeltable/pixeltable/main/docs/source/data/pixeltable-logo-large.png" alt="Pixeltable" width="20%" /></img>
|
|
|
107 |
<h1>Video to Social Media Post Generator</h1>
|
108 |
+
"""
|
109 |
+
)
|
110 |
+
with gr.Row():
|
111 |
+
with gr.Column():
|
112 |
+
gr.Markdown("""
|
113 |
+
<ul>
|
114 |
+
<li><strong>Video Data Management:</strong> Creating tables and views to store and organize video data.</li>
|
115 |
+
<li><strong>Automated Video Processing:</strong> Extracting frames and audio from videos.</li>
|
116 |
+
<li><strong>Data Transformation:</strong> Computing and storing metadata, transcriptions, and AI-generated content.</li>
|
117 |
+
<li><strong>AI Integration:</strong> Utilizing OpenAI's GPT and Whisper models for transcription and content generation.</li>
|
118 |
+
<li><strong>Custom Functions:</strong> Defining user-defined functions (UDFs) for specialized tasks like prompt construction.</li>
|
119 |
+
<li><strong>Data Persistence:</strong> Storing transformed data and AI outputs for easy retrieval and analysis.</li>
|
120 |
+
</ul>
|
121 |
+
"""
|
122 |
+
)
|
123 |
+
with gr.Column():
|
124 |
+
gr.Markdown("""
|
125 |
+
<ul>
|
126 |
+
<li><strong>Video Data Management:</strong> Creating tables and views to store and organize video data.</li>
|
127 |
+
<li><strong>Automated Video Processing:</strong> Extracting frames and audio from videos.</li>
|
128 |
+
<li><strong>Data Transformation:</strong> Computing and storing metadata, transcriptions, and AI-generated content.</li>
|
129 |
+
<li><strong>AI Integration:</strong> Utilizing OpenAI's GPT and Whisper models for transcription and content generation.</li>
|
130 |
+
<li><strong>Custom Functions:</strong> Defining user-defined functions (UDFs) for specialized tasks like prompt construction.</li>
|
131 |
+
<li><strong>Data Persistence:</strong> Storing transformed data and AI outputs for easy retrieval and analysis.</li>
|
132 |
+
</ul>
|
133 |
"""
|
134 |
)
|
135 |
|
|
|
175 |
|
176 |
gr.HTML(
|
177 |
"""
|
|
|
178 |
<p>Pixeltable is a declarative interface for working with text, images, embeddings, and even video, enabling you to store, transform, index, and iterate on data. Powered solely by <a href="https://github.com/pixeltable/pixeltable" style="text-decoration: underline;" target="_blank">Pixeltable</a> - running OpenAI (gpt-4o-mini-2024-07-18).</a></p>
|
179 |
<p><a href="https://colab.research.google.com/github/pixeltable/pixeltable/blob/release/docs/release/tutorials/pixeltable-basics.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Colab"></a></p>
|
|
|
180 |
"""
|
181 |
)
|
182 |
return demo
|