Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,18 +71,7 @@ def list_repo_files():
|
|
| 71 |
|
| 72 |
|
| 73 |
def collect_stories():
|
| 74 |
-
|
| 75 |
-
Build a story index from repo contents.
|
| 76 |
-
|
| 77 |
-
Expected folder structure:
|
| 78 |
-
job_1775798146_Sunbeam_s_Secret/
|
| 79 |
-
Sunbeam_s_Secret.md
|
| 80 |
-
full_video.mp4
|
| 81 |
-
dataset.csv
|
| 82 |
-
images/img_1.webp
|
| 83 |
-
images/img_2.webp
|
| 84 |
-
...
|
| 85 |
-
"""
|
| 86 |
repo_files = list_repo_files()
|
| 87 |
stories = {}
|
| 88 |
|
|
@@ -248,8 +237,8 @@ def build_showcase_html():
|
|
| 248 |
<div class="page-wrap">
|
| 249 |
<div class="hero">
|
| 250 |
<div>
|
| 251 |
-
<div class="eyebrow">Story Showcase</div>
|
| 252 |
-
<h1>
|
| 253 |
<p>Latest generated stories, images, and videos from the dataset repo.</p>
|
| 254 |
</div>
|
| 255 |
<div class="hero-stat">
|
|
@@ -305,7 +294,7 @@ body, .gradio-container {
|
|
| 305 |
align-items: center;
|
| 306 |
justify-content: space-between;
|
| 307 |
gap: 24px;
|
| 308 |
-
background:
|
| 309 |
border: 1px solid var(--border);
|
| 310 |
border-radius: 24px;
|
| 311 |
padding: 28px;
|
|
@@ -524,7 +513,7 @@ background: white;
|
|
| 524 |
# UI
|
| 525 |
# =========================================================
|
| 526 |
with gr.Blocks(
|
| 527 |
-
title="
|
| 528 |
theme=gr.themes.Soft(),
|
| 529 |
css=CUSTOM_CSS,
|
| 530 |
) as demo:
|
|
|
|
| 71 |
|
| 72 |
|
| 73 |
def collect_stories():
|
| 74 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
repo_files = list_repo_files()
|
| 76 |
stories = {}
|
| 77 |
|
|
|
|
| 237 |
<div class="page-wrap">
|
| 238 |
<div class="hero">
|
| 239 |
<div>
|
| 240 |
+
<div class="eyebrow">OhamLab Story Showcase</div>
|
| 241 |
+
<h1>OhamLab Enabled</h1>
|
| 242 |
<p>Latest generated stories, images, and videos from the dataset repo.</p>
|
| 243 |
</div>
|
| 244 |
<div class="hero-stat">
|
|
|
|
| 294 |
align-items: center;
|
| 295 |
justify-content: space-between;
|
| 296 |
gap: 24px;
|
| 297 |
+
background: white;
|
| 298 |
border: 1px solid var(--border);
|
| 299 |
border-radius: 24px;
|
| 300 |
padding: 28px;
|
|
|
|
| 513 |
# UI
|
| 514 |
# =========================================================
|
| 515 |
with gr.Blocks(
|
| 516 |
+
title="Story Factory Showcase",
|
| 517 |
theme=gr.themes.Soft(),
|
| 518 |
css=CUSTOM_CSS,
|
| 519 |
) as demo:
|