Spaces:
Running
Running
Nifemi Alpine Durin
commited on
Commit
·
42e93b3
1
Parent(s):
cc0c28f
add designs
Browse files
README.md
CHANGED
@@ -10,3 +10,7 @@ pinned: false
|
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
13 |
+
|
14 |
+
|
15 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/644252f59a5bbb07ab7a987a/f4xH6ZNx1rVbKzr8jAHmt.png)
|
16 |
+
|
app.py
CHANGED
@@ -69,6 +69,23 @@ def generate_image(brand_name, primary_color, secondary_color, description, targ
|
|
69 |
return image_path
|
70 |
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
iface = gr.Interface(
|
73 |
fn=generate_image,
|
74 |
inputs=[
|
@@ -97,6 +114,7 @@ iface = gr.Interface(
|
|
97 |
gr.components.Image(label="Generated Image")
|
98 |
],
|
99 |
title="Slidegen AI - Image generator",
|
|
|
100 |
description="Generate social media creatives from a few prompts",
|
101 |
live=False
|
102 |
)
|
|
|
69 |
return image_path
|
70 |
|
71 |
|
72 |
+
content_html = """
|
73 |
+
<div style="text-align: center; margin-top: 30px;">
|
74 |
+
<h2>X-Spaces Examples</h2>
|
75 |
+
<div style="display: flex; justify-content: space-around; align-items: center;">
|
76 |
+
<!-- Displaying one video -->
|
77 |
+
<video controls width="30%">
|
78 |
+
<source src="https://cdn-uploads.huggingface.co/production/uploads/644252f59a5bbb07ab7a987a/IxuuqPhmIX3Jggqkeiseb.mp4" type="video/mp4">
|
79 |
+
Your browser does not support the video tag.
|
80 |
+
</video>
|
81 |
+
<!-- Displaying two images -->
|
82 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/644252f59a5bbb07ab7a987a/f4xH6ZNx1rVbKzr8jAHmt.png" alt="Image Description 1" style="width: 30%; margin: 0 10px;">
|
83 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/644252f59a5bbb07ab7a987a/f4xH6ZNx1rVbKzr8jAHmt.png" alt="Image Description 2" style="width: 30%; margin: 0 10px;">
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
|
87 |
+
"""
|
88 |
+
|
89 |
iface = gr.Interface(
|
90 |
fn=generate_image,
|
91 |
inputs=[
|
|
|
114 |
gr.components.Image(label="Generated Image")
|
115 |
],
|
116 |
title="Slidegen AI - Image generator",
|
117 |
+
article=content_html,
|
118 |
description="Generate social media creatives from a few prompts",
|
119 |
live=False
|
120 |
)
|