Spaces:
Running
on
Zero
Running
on
Zero
Julian Bilcke
commited on
Commit
·
5aba20d
1
Parent(s):
360cc6a
up
Browse files
app.py
CHANGED
|
@@ -848,12 +848,98 @@ with gr.Blocks(css=css) as demo:
|
|
| 848 |
|
| 849 |
with gr.Column(elem_id="col-container"):
|
| 850 |
gr.HTML("""
|
| 851 |
-
<div id="logo-title">
|
| 852 |
-
<img src="
|
| 853 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 854 |
</div>
|
| 855 |
""")
|
| 856 |
-
gr.Markdown("This demo uses [Qwen-Image-Lightning](https://huggingface.co/lightx2v/Qwen-Image-Lightning).
|
| 857 |
|
| 858 |
# First row: prompt input, generate button, reset button
|
| 859 |
with gr.Row():
|
|
|
|
| 848 |
|
| 849 |
with gr.Column(elem_id="col-container"):
|
| 850 |
gr.HTML("""
|
| 851 |
+
<div id="logo-title" style="display: flex; align-items: center; justify-content: center; padding: 20px 0; position: relative;">
|
| 852 |
+
<img src="/gradio_api/file=logo.png" alt="AI Comic Factory Logo" style="max-height: 256px; width: auto; margin-right: 30px;">
|
| 853 |
+
<div style="position: relative; display: flex; flex-direction: column; align-items: center;">
|
| 854 |
+
<div class="comic-label comic-label-top" style="
|
| 855 |
+
background: linear-gradient(135deg, #ff6b35, #ff8c42);
|
| 856 |
+
color: white;
|
| 857 |
+
padding: 12px 28px;
|
| 858 |
+
font-size: 32px;
|
| 859 |
+
font-weight: 900;
|
| 860 |
+
text-transform: uppercase;
|
| 861 |
+
transform: rotate(-5deg);
|
| 862 |
+
position: relative;
|
| 863 |
+
margin-bottom: 10px;
|
| 864 |
+
border-radius: 8px;
|
| 865 |
+
box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
|
| 866 |
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
|
| 867 |
+
letter-spacing: 2px;
|
| 868 |
+
border: 3px solid #fff;
|
| 869 |
+
font-family: 'Impact', 'Arial Black', sans-serif;
|
| 870 |
+
animation: pulse 2s ease-in-out infinite;
|
| 871 |
+
">
|
| 872 |
+
AI Comic Factory
|
| 873 |
+
</div>
|
| 874 |
+
<div class="comic-label comic-label-bottom" style="
|
| 875 |
+
background: linear-gradient(135deg, #ff8c42, #ffa552);
|
| 876 |
+
color: white;
|
| 877 |
+
padding: 10px 24px;
|
| 878 |
+
font-size: 24px;
|
| 879 |
+
font-weight: 800;
|
| 880 |
+
text-transform: uppercase;
|
| 881 |
+
transform: rotate(7deg);
|
| 882 |
+
position: relative;
|
| 883 |
+
border-radius: 6px;
|
| 884 |
+
box-shadow: 0 6px 16px rgba(255, 140, 66, 0.4);
|
| 885 |
+
text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.15);
|
| 886 |
+
letter-spacing: 1.5px;
|
| 887 |
+
border: 2px solid #fff;
|
| 888 |
+
font-family: 'Impact', 'Arial Black', sans-serif;
|
| 889 |
+
font-style: italic;
|
| 890 |
+
animation: pulse 2s ease-in-out infinite;
|
| 891 |
+
animation-delay: 0.5s;
|
| 892 |
+
">
|
| 893 |
+
Gradio Edition!
|
| 894 |
+
</div>
|
| 895 |
+
<style>
|
| 896 |
+
@keyframes pulse {
|
| 897 |
+
0%, 100% {
|
| 898 |
+
transform: scale(1) rotate(var(--rotation));
|
| 899 |
+
}
|
| 900 |
+
50% {
|
| 901 |
+
transform: scale(1.05) rotate(var(--rotation));
|
| 902 |
+
}
|
| 903 |
+
}
|
| 904 |
+
.comic-label-top {
|
| 905 |
+
--rotation: -5deg;
|
| 906 |
+
}
|
| 907 |
+
.comic-label-bottom {
|
| 908 |
+
--rotation: 7deg;
|
| 909 |
+
}
|
| 910 |
+
.comic-label:hover {
|
| 911 |
+
transform: scale(1.1) rotate(var(--rotation)) !important;
|
| 912 |
+
transition: transform 0.3s ease;
|
| 913 |
+
}
|
| 914 |
+
.comic-label::before {
|
| 915 |
+
content: '';
|
| 916 |
+
position: absolute;
|
| 917 |
+
top: -8px;
|
| 918 |
+
right: -8px;
|
| 919 |
+
width: 30px;
|
| 920 |
+
height: 30px;
|
| 921 |
+
background: radial-gradient(circle, #ffeb3b, #ffc107);
|
| 922 |
+
border-radius: 50%;
|
| 923 |
+
border: 2px solid #fff;
|
| 924 |
+
box-shadow: 0 2px 8px rgba(255, 193, 7, 0.6);
|
| 925 |
+
z-index: -1;
|
| 926 |
+
animation: sparkle 1.5s ease-in-out infinite;
|
| 927 |
+
}
|
| 928 |
+
@keyframes sparkle {
|
| 929 |
+
0%, 100% {
|
| 930 |
+
transform: scale(1);
|
| 931 |
+
opacity: 1;
|
| 932 |
+
}
|
| 933 |
+
50% {
|
| 934 |
+
transform: scale(1.2);
|
| 935 |
+
opacity: 0.8;
|
| 936 |
+
}
|
| 937 |
+
}
|
| 938 |
+
</style>
|
| 939 |
+
</div>
|
| 940 |
</div>
|
| 941 |
""")
|
| 942 |
+
gr.Markdown("This demo uses [Qwen-Image-Lightning](https://huggingface.co/lightx2v/Qwen-Image-Lightning). Hugging Face PRO users can perform more generations.")
|
| 943 |
|
| 944 |
# First row: prompt input, generate button, reset button
|
| 945 |
with gr.Row():
|